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