Vector4D
Function | Description |
---|---|
Vector4D.new() | Creates a default Vector4D (0, 0, 0, 0) |
Vector4D.new(float x , float y , float z , float w ) |
Creates a Vector4D with components x , y , z , and w |
Vector4D.new(float x ) |
Creates a Vector4D with all components set to x |
Operator | Description |
---|---|
== |
Checks equality between two Vector4D objects |
+ |
Adds two Vector4D objects |
- |
Subtracts one Vector4D from another |
* |
Multiplies a Vector4D by a scalar |
/ |
Divides a Vector4D by a scalar |
Function | Returns | Description |
---|---|---|
:toStr() | String | Returns a string representation of the vector |