Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.Vector3I

Morten Aune Lyrstad edited this page Apr 16, 2022 · 53 revisions

IndexNamespace Index

Vector3I Struct

public struct Vector3I: IEquatable<Vector3I>, IComparable<Vector3I>

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Member Description
static Vector3I Backward
static EqualityComparer Comparer
static Vector3I Down
static Vector3I Forward
static Vector3I Left
static Vector3I MaxValue
static Vector3I MinValue
static Vector3I One
static Vector3I Right
static Vector3I UnitX
static Vector3I UnitY
static Vector3I UnitZ
static Vector3I Up
static Vector3I Zero
int X
int Y
int Z

Properties

Member Description
bool IsPowerOfTwo { get; }
int Item { get; set; }
int Size { get; } How many cubes are in block with this size
long SizeLong { get; }

Constructors

Member Description
Vector3I(int)
Vector3I(int, int, int)
Vector3I(Vector2I, int)
Vector3I(Vector3)
Vector3I(Vector3D)
Vector3I(Vector3S)
Vector3I(float, float, float)
Vector3I(Byte[], int)

Methods

Member Description
static Vector3I Abs(Vector3I)
static void Abs(ref Vector3I, out Vector3I)
static bool BoxContains(Vector3I, Vector3I, Vector3I)
static bool BoxContains(ref Vector3I, ref Vector3I, ref Vector3I)
static bool BoxIntersects(Vector3I, Vector3I, Vector3I, Vector3I)
static bool BoxIntersects(ref Vector3I, ref Vector3I, ref Vector3I, ref Vector3I)
static Vector3I Ceiling(Vector3)
static Vector3I Ceiling(Vector3D)
static Vector3I Clamp(Vector3I, Vector3I, Vector3I)
static void Clamp(ref Vector3I, ref Vector3I, ref Vector3I, out Vector3I)
static void Cross(ref Vector3I, ref Vector3I, out Vector3I) Calculates the cross product of two vectors.
static int DistanceManhattan(Vector3I, Vector3I) Manhattan distance (cube distance) X + Y + Z of Abs(first - second)
static Vector3I DominantAxisProjection(Vector3I) Returns a vector that is equal to the projection of the input vector to the coordinate axis that corresponds to the original vector's largest value.
static void DominantAxisProjection(ref Vector3I, out Vector3I) Calculates a vector that is equal to the projection of the input vector to the coordinate axis that corresponds to the original vector's largest value. The result is saved into a user-specified variable.
static int Dot(Vector3I, Vector3I)
static int Dot(ref Vector3I, ref Vector3I)
static void Dot(ref Vector3I, ref Vector3I, out int)
static IEnumerable EnumerateRange(Vector3I, Vector3I) Enumerate all values in a integer interval (a cuboid). This method is an allocating version of the Vector3I_RangeIterator. This once can be used in the foreach syntax though so it's more convenient for debug routines.
static Vector3I Floor(Vector3)
static Vector3I Floor(Vector3D)
static void Floor(ref Vector3, out Vector3I)
static void Floor(ref Vector3D, out Vector3I)
static CubeFace GetDominantDirection(Vector3I)
static Vector3I GetDominantDirectionVector(Vector3I)
static Vector3I Max(Vector3I, Vector3I)
static void Max(ref Vector3I, ref Vector3I, out Vector3I)
static Vector3I Min(Vector3I, Vector3I)
static void Min(ref Vector3I, ref Vector3I, out Vector3I)
static void MinMax(ref Vector3I, ref Vector3I) Separates minimal and maximal values of any two input vectors
static Vector3I Round(Vector3)
static Vector3I Round(Vector3D)
static void Round(ref Vector3, out Vector3I)
static void Round(ref Vector3D, out Vector3I)
static Vector3I Shift(Vector3I)
static Vector3I Sign(Vector3)
static Vector3I Sign(Vector3I)
static void Transform(ref Vector3I, ref Matrix, out Vector3I) Transforms a Vector3I by the given Matrix.
static void Transform(ref Vector3I, ref Quaternion, out Vector3I)
static Vector3I Transform(Vector3I, Quaternion)
static void Transform(ref Vector3I, ref MatrixI, out Vector3I)
static Vector3I Transform(Vector3I, MatrixI)
static Vector3I Transform(Vector3I, ref MatrixI)
static Vector3I TransformNormal(Vector3I, ref MatrixI)
static void TransformNormal(ref Vector3I, ref Matrix, out Vector3I) Transforms a vector normal by a matrix.
static void TransformNormal(ref Vector3I, ref MatrixI, out Vector3I)
static Vector3I Trunc(Vector3)
static bool TryParseFromString(string, out Vector3I)
int AbsMax() Returns the component of the vector, whose absolute value is largest of all the three components.
int AbsMin() Returns the component of the vector, whose absolute value is smallest of all the three components.
int AxisValue(Axis)
int CompareTo(Vector3I)
int Dot(ref Vector3I)
bool Equals(Vector3I)
bool Equals(object)
int GetHashCode()
bool IsAxisAligned()
bool IsInside(ref Vector3I, ref Vector3I)
bool IsInside(Vector3I, Vector3I)
bool IsInsideInclusiveEnd(ref Vector3I, ref Vector3I)
bool IsInsideInclusiveEnd(Vector3I, Vector3I)
int Length()
int RectangularDistance(Vector3I) Calculates rectangular distance. It's how many sectors you have to travel to get to other sector from current sector.
int RectangularLength() Calculates rectangular distance of this vector, interpreted as a point, from the origin.
void ToBytes(List)
string ToString()
int Volume()
Clone this wiki locally