vector
Variables
Name | Type |
x | float |
y | float |
z | float |
Functions
IsZero
Returns:
Type | Description |
bool | true if all vector axes equals zero |
Code:
IsValid
Returns:
Type | Description |
bool | true if all vector axes is finite |
Code:
Length
Returns:
Type | Description |
float | length of current vector |
Code:
LengthSqr
Returns:
Type | Description |
float | squared length of current vector |
Code:
Length2D
Returns:
Type | Description |
float | length of current vector, only |
Code:
Length2DSqr
Returns:
Type | Description |
float | squared length of current vector, only |
Code:
DistTo
Parameters:
Name | Type | Description |
vecEnd | Vector | end point to calculate distance from current vector |
Returns:
Type | Description |
float | distance between current and given vector |
Code:
DistToSqr
Parameters:
Name | Type | Description |
vecEnd | Vector | end point to calculate distance from current vector |
Returns:
Type | Description |
float | squared distance between current and given vector |
Code:
DotProduct
Parameters:
Name | Type | Description |
vecDot | Vector | point to calculate dot of current vector with |
Returns:
Type | Description |
Vector | dot product of current and given vectors |
Code:
CrossProduct
Parameters:
Name | Type | Description |
vecCross | Vector | point to calculate cross of current vector with |
Returns:
Type | Description |
Vector | cross product of current and given vectors |
Code:
Normalized
Returns:
Type | Description |
Vector | normalized to legit values vector |
Code:
NormalizeInPlace
Returns:
Type | Description |
float | lenght of vector |
Code:
Last updated