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