3-dimensional vectors
This uses the right-handed coordinate system.
Create a new 3-dimensional vector
- Parameters
-
| horizontal | x axis value |
| vertical | y axis value |
| depth | z axis value |
|
| static float | MagnitudeOf (Vector3Int v) |
| | The vector length.
|
| |
| static float | SqrMagnitudeOf (Vector3Int v) |
| | The squared vector length.
|
| |
| static Vector3Float | Normalize (Vector3Int v) |
| | Convert the vector to a length of 1.
|
| |
| static Vector3Int | operator- (Vector3Int v1) |
| | Negate te vector such that it points in the opposite direction.
|
| |
| static Vector3Int | operator- (Vector3Int v1, Vector3Int v2) |
| | Subtract two vectors.
|
| |
| static Vector3Int | operator+ (Vector3Int v1, Vector3Int v2) |
| | Add two vectors.
|
| |
| static Vector3Int | Scale (Vector3Int v1, Vector3Int v2) |
| | Scale the vector using another vector.
|
| |
|
static Vector3Int | operator* (Vector3Int v1, int d) |
| |
|
static Vector3Int | operator* (int d, Vector3Int v1) |
| |
|
static Vector3Int | operator/ (Vector3Int v1, int d) |
| |
|
static bool | operator== (Vector3Int v1, Vector3Int v2) |
| |
|
static bool | operator!= (Vector3Int v1, Vector3Int v2) |
| |
| static float | Distance (Vector3Int v1, Vector3Int v2) |
| | The distance between two vectors.
|
| |
| static float | Dot (Vector3Int v1, Vector3Int v2) |
| | The dot product of two vectors.
|
| |
| static Vector3Int | Cross (Vector3Int v1, Vector3Int v2) |
| | The cross product of two vectors.
|
| |
| static AngleFloat | UnsignedAngle (Vector3Int v1, Vector3Int v2) |
| | The angle between two vectors.
|
| |
| static AngleFloat | SignedAngle (Vector3Int v1, Vector3Int v2, Vector3Int axis) |
| | The signed angle between two vectors.
|
| |
|
|
static readonly Vector3Int | zero = new(0, 0, 0) |
| | A vector with zero for all axis.
|
| |
|
static readonly Vector3Int | one = new(1, 1, 1) |
| | A vector with one for all axis.
|
| |
|
static readonly Vector3Int | left = new(-1, 0, 0) |
| | A Vector3Int with values (-1, 0, 0)
|
| |
|
static readonly Vector3Int | right = new(1, 0, 0) |
| | A vector with values (1, 0, 0)
|
| |
|
static readonly Vector3Int | down = new(0, -1, 0) |
| | A vector with values (0, -1, 0)
|
| |
|
static readonly Vector3Int | up = new(0, 1, 0) |
| | A vector with values (0, 1, 0)
|
| |
|
static readonly Vector3Int | back = new(0, -1, 0) |
| | A vector with values (0, 0, -1)
|
| |
|
static readonly Vector3Int | forward = new(0, 1, 0) |
| | A vector with values (0, 0, 1)
|
| |