|
Bexel Manager API Documentation
|
Represents a vector in 3-dimensional space. More...
Public Member Functions | |
| override int | GetHashCode () |
| override bool | Equals (object obj) |
| bool | Equals (Vector3D other) |
| bool | Equals (Vector3D other, float tolerance) |
| Indicates if this vector is within tolerance of the given vector. More... | |
| float | GetLength () |
| Retrieves the length of the vector. More... | |
| float | GetLengthSquared () |
| Retrieves the squared length of the vector. More... | |
| Vector3D | Add (Vector3D other) |
| Returns the sum of this vector and the given vector. More... | |
| Vector3D | Subtract (Vector3D other) |
| Returns the difference between this vector and the given vector. More... | |
| Vector3D | CrossProduct (Vector3D other) |
| Returns the cross product between this vector and the given vector. More... | |
| float | DotProduct (Vector3D other) |
| Returns the dot product of this vector and the given vector. More... | |
| Vector3D | Scale (float scalar) |
| Returns a copy of this vector scaled by the given scalar. More... | |
| Vector3D | Normalized () |
| Returns a normalized copy of this vector. More... | |
| float | DistanceTo (Vector3D other) |
| Returns the distance between this vector and the given vector. More... | |
Static Public Member Functions | |
| static Vector3D | Create (float x, float y, float z) |
| Creates a new instance of Bexel.Api.Vector3D. More... | |
| static Vector3D | operator- (Vector3D other) |
| static bool | operator== (Vector3D v1, Vector3D v2) |
| static bool | operator!= (Vector3D v1, Vector3D v2) |
| static Vector3D | operator+ (Vector3D v1, Vector3D v2) |
| static Vector3D | operator- (Vector3D v1, Vector3D v2) |
| static Vector3D | operator* (Vector3D other, float scalar) |
| static Vector3D | operator* (float scalar, Vector3D other) |
Properties | |
| static Vector3D | XAxis = Vector3F.XAxis.ToVector3D() [get] |
| Returns global X axis (1,0,0). More... | |
| static Vector3D | YAxis = Vector3F.YAxis.ToVector3D() [get] |
| Returns global Y axis (0,1,0). More... | |
| static Vector3D | ZAxis = Vector3F.ZAxis.ToVector3D() [get] |
| Returns global Z axis (0,0,1). More... | |
| static Vector3D | Zero = Vector3F.Zero.ToVector3D() [get] |
| Returns zero vector (0,0,0). More... | |
| float | X [get] |
| Returns the X coordinate of the vector. More... | |
| float | Y [get] |
| Returns the Y coordinate of the vector. More... | |
| float | Z [get] |
| Returns the Z coordinate of the vector. More... | |
Represents a vector in 3-dimensional space.
Returns the sum of this vector and the given vector.
| other | The vector with which the sum is computed. |
|
static |
Creates a new instance of Bexel.Api.Vector3D.
| x | X coordinate of the vector. |
| y | Y coordinate of the vector. |
| z | Z coordinate of the vector. |
Returns the cross product between this vector and the given vector.
| other | The vector with which the cross product is computed. |
| float Bexel.Api.Vector3D.DistanceTo | ( | Vector3D | other | ) |
Returns the distance between this vector and the given vector.
| other | The vector to which the distance is computed. |
| float Bexel.Api.Vector3D.DotProduct | ( | Vector3D | other | ) |
Returns the dot product of this vector and the given vector.
| other | The vector with which the dot product is computed. |
| bool Bexel.Api.Vector3D.Equals | ( | Vector3D | other, |
| float | tolerance | ||
| ) |
Indicates if this vector is within tolerance of the given vector.
| other | The vector with which this vector is compared for approximate equality. |
| tolerance | The allowed deviation between this vector and the given vector. |
| float Bexel.Api.Vector3D.GetLength | ( | ) |
Retrieves the length of the vector.
| float Bexel.Api.Vector3D.GetLengthSquared | ( | ) |
Retrieves the squared length of the vector.
| Vector3D Bexel.Api.Vector3D.Normalized | ( | ) |
Returns a normalized copy of this vector.
| Vector3D Bexel.Api.Vector3D.Scale | ( | float | scalar | ) |
Returns a copy of this vector scaled by the given scalar.
| scalar | The scalar by which the returned vector is scaled. |
Returns the difference between this vector and the given vector.
| other | The vector with which the difference is computed. |
|
get |
Returns the X coordinate of the vector.
|
staticget |
Returns global X axis (1,0,0).
|
get |
Returns the Y coordinate of the vector.
|
staticget |
Returns global Y axis (0,1,0).
|
get |
Returns the Z coordinate of the vector.
|
staticget |
Returns global Z axis (0,0,1).
|
staticget |
Returns zero vector (0,0,0).