Vector3F class
Vector3F class
Vector with 3 float parameters
The Vector3F type exposes the following members:
Constructors
Constructor | Description |
---|---|
init | Initializes a new instance of the Vector3F struct. |
init | Initializes a new instance of the Vector3F struct. |
init | Initializes a new instance of the Vector3F struct. |
init | Constructs a new instance of Vector3F |
Properties
Property | Description |
---|---|
r | Red component |
g | Green component |
b | Blue component |
length | Length |
square_length | Square length |
x | X coordinate |
y | Y coordinate |
z | Z coordinate |
Gets a coordinate at the specified index.
Indexer
Name | Description |
---|---|
[index] | The index. |
Methods
Method | Description |
---|---|
to_2f | Creates Vector2F. |
normalized | Creates normilized vector. |
safe_normalized | Creates normilized vector safely(returns self if length is zero). |
to_vector_4f | Creates Vector4F. |
equals | Returns a boolean indicating whether the given Vector3F is equal to this Vector3F instance. |
zero | Creates vector with (0, 0, 0). |
x_axis | Creates x-axis. |
y_axis | Creates y-axis. |
z_axis | Creates z-axis. |
dot_product | Returns the dot product of two vectors. |
cross_product | Returns the cross product of two vectors. |
newell_face_normal | |
reflect | Calculates a reflected vector. |
See Also
- module
aspose.cad
- class
Vector3F