Fields

x The X component of this integer vector.
y The Y component of this integer vector.
z The Z component of this integer vector.

Properties

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.

Methods

Abs Returns a new integer vector with all values positive. -5 becomes 5, ect.
ComponentMax
ComponentMin
Distance
IsNearlyZero
Read
SnapToGrid
WithX
WithY
WithZ
Write

Static Fields

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.

Static Methods

Cross
Dot
GetAngle
Max
Min
Parse
TryParse
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.