Vector3 class
Vector3 class
A vector with three components.
The Vector3 type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes a new instance of the Vector3 struct. |
init | Initializes a new instance of the Vector3 struct. |
init | Initializes a new instance of the Vector3 struct. |
init | Initializes a new instance of the Vector3 struct. |
init | Constructs a new instance of Vector3 |
Properties
Property | Description |
---|---|
length2 | Gets the square of the length. |
length | Gets the length of this vector. |
zero | Gets unit vector (0, 0, 0) |
one | Gets unit vector (1, 1, 1) |
unit_x | Gets unit vector (1, 0, 0) |
unit_y | Gets unit vector (0, 1, 0) |
unit_z | Gets unit vector (0, 0, 1) |
ORIGIN | Gets the origin position. |
UNIT_SCALE | Gets the unit scale vector. |
X_AXIS | Gets the X axis. |
Y_AXIS | Gets the Y axis. |
Z_AXIS | Gets the Z axis. |
Indexer
Name | Description |
---|---|
[index] |
Methods
Method | Description |
---|---|
angle_between | Calculate the inner angle between two direction Two direction can be non-normalized vectors |
angle_between | Calculate the inner angle between two direction Two direction can be non-normalized vectors |
dot | Gets the dot product of two vectors |
normalize | Normalizes this instance. |
sin | Calculates sine on each component |
cos | Calculates cosine on each component |
cross | Cross product of two vectors |
set | Sets the x/y/z component in one call. |
compare_to | Compare current vector to another instance. |
See Also
- module
aspose.threed.utilities
- class
Vector3