A three dimensional vector with built in utility functions.
More...
|
readonly float | x |
| X component of this vector.
|
|
readonly float | y |
| Y component of this vector.
|
|
readonly float | z |
| Z component of this vector.
|
|
|
float | this[int i] [get] |
| Get a component of this vector as if it were an array of 3 floats. More...
|
|
A three dimensional vector with built in utility functions.
The Vector3D is the fundamental type of DHARTAPI for handling position and direction values.
◆ Vector3D()
DHARTAPI.Vector3D.Vector3D |
( |
float |
X, |
|
|
float |
Y, |
|
|
float |
Z |
|
) |
| |
◆ DistanceTo()
float DHARTAPI.Vector3D.DistanceTo |
( |
Vector3D |
V2 | ) |
|
◆ IsValid()
bool DHARTAPI.Vector3D.IsValid |
( |
| ) |
|
Check if this vector is valid.
- Returns
- false if the point contains any components that are not finite.
- See also
- Single.IsFinite() for more information on how this is calculated.
◆ ToArray()
float[] DHARTAPI.Vector3D.ToArray |
( |
| ) |
|
◆ ToString()
override string DHARTAPI.Vector3D.ToString |
( |
| ) |
|
◆ this[int i]
float DHARTAPI.Vector3D.this[int i] |
|
get |
Get a component of this vector as if it were an array of 3 floats.
- Parameters
-
i | The index of the coordinate to get. |
- Returns
- The x coordinate for 0, the y coordinate for 1, the z coordinate for 2.
- Exceptions
-
System.ArgumentOutOfRangeException | i is greater than 2 or less than 0. |
The documentation for this struct was generated from the following file:
- src/Csharp/packages/base/src/CommonTypes.cs