Class Vec4i
- Namespace
- Vintagestory.API.MathTools
- Assembly
- VintagestoryAPI.dll
Represents a vector of 4 ints. Go bug Tyron if you need more utility methods in this class.
public class Vec4i : IEquatable<Vec4i>
- Inheritance
-
Vec4i
- Implements
- Derived
- Inherited Members
- Extension Methods
Constructors
Vec4i()
public Vec4i()
Vec4i(int, int, int, int)
public Vec4i(int x, int y, int z, int w)
Parameters
Vec4i(BlockPos, int)
public Vec4i(BlockPos pos, int w)
Parameters
Fields
W
public int W
Field Value
X
public int X
Field Value
Y
public int Y
Field Value
Z
public int Z
Field Value
Methods
Equals(Vec4i)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(Vec4i other)
Parameters
other
Vec4iAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
HorDistanceSqTo(double, double)
Returns the squared Euclidean horizontal distance to between this and given position
public float HorDistanceSqTo(double x, double z)