Class C2Vector
A 2D float vector: texture coordinates, UV animation speeds.
public class C2Vector : IDisposable
- Inheritance
-
C2Vector
- Implements
- Inherited Members
Constructors
C2Vector()
public C2Vector()
C2Vector(float, float)
public C2Vector(float x, float y)
Parameters
C2Vector(C2Vector)
Copy-construct: a deep copy of other (the C++ copy constructor).
public C2Vector(C2Vector other)
Parameters
otherC2Vector
Properties
X
The x component.
public float X { get; set; }
Property Value
Y
The y component.
public float 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 ==(C2Vector?, C2Vector?)
public static bool operator ==(C2Vector? l, C2Vector? r)
Parameters
Returns
operator !=(C2Vector?, C2Vector?)
public static bool operator !=(C2Vector? l, C2Vector? r)