EulerAngles |
The Euler angles of this direction vector. |
Inverse |
Returns the inverse of this vector, which is useful for scaling vectors. Keep in mind this returns a Vector3 and not a Vector3Int. |
IsZeroLength |
Whether the length of this vector is zero or not. |
Item |
|
Length |
Length (or magnitude) of the integer vector (Distance from 0,0,0) |
LengthSquared |
Squared length of the integer vector. This is faster than <see cref="P:Vector3Int.Length">Length</see>, and can be used for things like comparing distances, as long as only squared values are used. |
Normal |
Returns a unit version of this vector. Keep in mind this returns a Vector3 and not a Vector3Int. |
Abs |
Returns a new integer vector with all values positive. -5 becomes 5, ect. |
ComponentMax |
Returns an integer vector that has the maximum values on each axis between this vector and a given vector. |
ComponentMin |
Returns an integer vector that has the minimum values on each axis between this vector and a given vector. |
Distance |
Returns distance between this vector and another. |
IsNearlyZero |
Returns true if value on every axis is less than or equal to tolerance. |
Read |
|
SnapToGrid |
Snap to grid along any of the 3 axes. |
WithX |
Returns this integer vector with given X component. |
WithY |
Returns this integer vector with given Y component. |
WithZ |
Returns this integer vector with given Z component. |
Write |
|
Backward |
An integer vector with X set to -1. This represents the backward direction. |
Down |
An integer vector with Z set to -1. This represents the down direction. |
Forward |
An integer vector with X set to 1. This represents the forward direction. |
Left |
An integer vector with Y set to -1. This represents the left direction. |
One |
An integer vector with all components set to 1. |
OneX |
An integer vector with X set to 1. |
OneY |
An integer vector with Y set to 1. |
OneZ |
An integer vector with Z set to 1. |
Right |
An integer vector with Y set to 1. This represents the right direction. |
Up |
An integer vector with Z set to 1. This represents the up direction. |
Zero |
An integer vector with all components set to 0. |
Cross |
Returns the cross product of this and the given integer vector.
If this and the given vectors are linearly independent, the resulting vector is perpendicular to them both, also known as a normal of a plane. |
Dot |
Returns the scalar/dot product of the 2 given integer vectors. |
GetAngle |
|
Max |
Returns an integer vector that has the maximum values on each axis between 2 given vectors. |
Min |
Returns an integer vector that has the minimum values on each axis between 2 given vectors. |
Parse |
Given a string, try to convert this into a Vector3Int. Example formatting is "x,y,z", "[x,y,z]", "x y z", etc. |
TryParse |
|