Class C2IVector
A 2D integer vector.
public class C2IVector : IDisposable
- Inheritance
-
C2IVector
- Implements
- Inherited Members
Constructors
C2IVector()
public C2IVector()
C2IVector(int, int)
public C2IVector(int x, int y)
Parameters
C2IVector(C2IVector)
Copy-construct: a deep copy of other (the C++ copy constructor).
public C2IVector(C2IVector other)
Parameters
otherC2IVector
Properties
X
The x component.
public int X { get; set; }
Property Value
Y
The y component.
public int Y { get; set; }
Property Value
Methods
Dispose()
Release the native object now. Optional: the finalizer releases it on
collection anyway - dispose (or using) when you want native memory back
promptly.
public virtual void Dispose()
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
GetHashCode()
Reference-identity hash (the C++ type has no hash to mirror).
public override int GetHashCode()
Returns
Operators
operator ==(C2IVector?, C2IVector?)
public static bool operator ==(C2IVector? l, C2IVector? r)
Parameters
Returns
operator !=(C2IVector?, C2IVector?)
public static bool operator !=(C2IVector? l, C2IVector? r)