Struct Int3 Extends System::IEquatable<Int3>

Public

Holds a coordinate in (integer) millimeters.

This is used for node coordinates and other things, primarily to avoid floating point calculations in the core pathfinding routines (as they can be slow and non-deterministic if you are not careful).

You can cast back and forth between Vector3s and Int3s like: Int3 intPoint = (Int3)transform.position;
transform.position = (Vector3)intPoint;

During the cast, the coordinates will be rounded to the nearest millimeter.

Public Methods

Equals (...)
Int3 (...)

Normal in 2D space (XZ).

Returns a nicely formatted string representing the vector.

Public Static Methods

Angle (lhs, rhs)

Angle between the vectors in radians.

Dot (lhs, rhs)
DotLong (lhs, rhs)
Max (lhs, rhs)
Min (lhs, rhs)
operator!= (lhs, rhs)
operator* (lhs, rhs)
operator+ (lhs, rhs)
operator- (lhs, [rhs])
operator/ (lhs, rhs)
operator== (lhs, rhs)

Public Variables

costMagnitude

Magnitude used for the cost between two nodes.

Public
magnitude

Returns the magnitude of the vector.

Public
sqrMagnitude

The squared magnitude of the vector.

Public
sqrMagnitudeLong

The squared magnitude of the vector.

Public
this[int i]
Public
x
Public
y
Public
z
Public

Public Static Variables

FloatPrecision

Precision as a float

Public Static
Precision

Precision for the integer coordinates.

Public Static
PrecisionFactor

1 divided by Precision

Public Static
zero
Public Static