Vector4F class
Vector4F class
Vector with 4 float parameters
The Vector4F type exposes the following members:
Constructors
Constructor | Description |
---|
init | Initializes a new instance of the Vector4F struct. |
init | Initializes a new instance of the Vector4F struct. |
init | Initializes a new instance of the Vector4F struct. |
init | Initializes a new instance of the Vector4F struct. |
init | Constructs a new instance of Vector4F |
Properties
Property | Description |
---|
r | Red component |
g | Green component |
b | Blue component |
a | Alpha component |
length | Length |
square_length | Square length |
x | X coordinate |
y | Y coordinate |
z | Z coordinate |
w | W coordinate |
Gets a coordinate at the specified index.
Indexer
Name | Description |
---|
[index] | The index. |
Methods
Method | Description |
---|
normalized | Creates normilized vector. |
safe_normalized | Creates normilized vector safely(returns self if length is zero). |
to_vector_2f | Creates Vector2F. |
to_vector_3f | Creates Vector3F. |
equals | Returns a boolean indicating whether the given Vector4F is equal to this Vector4F instance. |
zero | Creates vector with (0, 0, 0). |
See Also