Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.Vector3L

Malware edited this page Dec 21, 2018 · 53 revisions

Index

Vector3L Struct

Namespace: VRageMath
Assembly: VRage.Math.dll

Fields

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

Properties

Member Description
long Item
long Size How many cubes are in block with this size
long SizeLong

Methods

Member Description
string ToString()
bool Equals(Vector3L other)
bool Equals(Object obj)
int GetHashCode()
bool IsInsideInclusiveEnd(ref Vector3L min, ref Vector3L max)
bool IsInsideInclusiveEnd(Vector3L min, Vector3L max)
bool IsInside(ref Vector3L inclusiveMin, ref Vector3L exclusiveMax)
bool IsInside(Vector3L inclusiveMin, Vector3L exclusiveMax)
long RectangularDistance(Vector3L otherVector) Calculates rectangular distance. It's how many sectors you have to travel to get to other sector from current sector.
long RectangularLength() Calculates rectangular distance of this vector, longerpreted as a polong, from the origin.
long Length()
static bool Boxlongersects(Vector3L minA, Vector3L maxA, Vector3L minB, Vector3L maxB)
static bool Boxlongersects(ref Vector3L minA, ref Vector3L maxA, ref Vector3L minB, ref Vector3L maxB)
static bool BoxContains(Vector3L boxMin, Vector3L boxMax, Vector3L pt)
static bool BoxContains(ref Vector3L boxMin, ref Vector3L boxMax, ref Vector3L pt)
static Vector3L Min(Vector3L value1, Vector3L value2)
static void Min(ref Vector3L value1, ref Vector3L value2, ref Vector3L result)
long AbsMin() Returns the component of the vector, whose absolute value is smallest of all the three components.
static Vector3L Max(Vector3L value1, Vector3L value2)
static void Max(ref Vector3L value1, ref Vector3L value2, ref Vector3L result)
long AbsMax() Returns the component of the vector, whose absolute value is largest of all the three components.
long AxisValue(Axis axis)
static CubeFace GetDominantDirection(Vector3L val)
static Vector3L GetDominantDirectionVector(Vector3L val)
static Vector3L DominantAxisProjection(Vector3L value1) 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 Vector3L value1, ref Vector3L result) 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 longo a user-specified variable.
static Vector3L Sign(Vector3 value)
static Vector3L Sign(Vector3L value)
static Vector3L Floor(Vector3 value)
static Vector3L Floor(Vector3D value)
static void Floor(ref Vector3 v, ref Vector3L r)
static void Floor(ref Vector3D v, ref Vector3L r)
static Vector3L Ceiling(Vector3 value)
static Vector3L Trunc(Vector3 value)
static Vector3L Shift(Vector3L value)
static void Transform(ref Vector3L position, ref Matrix matrix, ref Vector3L result) Transforms a Vector3L by the given Matrix.
static void Transform(ref Vector3L value, ref Quaternion rotation, ref Vector3L result)
static Vector3L Transform(Vector3L value, Quaternion rotation)
static void TransformNormal(ref Vector3L normal, ref Matrix matrix, ref Vector3L result) Transforms a vector normal by a matrix.
static void Cross(ref Vector3L vector1, ref Vector3L vector2, ref Vector3L result) Calculates the cross product of two vectors.
int CompareTo(Vector3L other)
static Vector3L Abs(Vector3L value)
static void Abs(ref Vector3L value, ref Vector3L result)
static Vector3L Clamp(Vector3L value1, Vector3L min, Vector3L max)
static void Clamp(ref Vector3L value1, ref Vector3L min, ref Vector3L max, ref Vector3L result)
static long DistanceManhattan(Vector3L first, Vector3L second) Manhattan distance (cube distance) X + Y + Z of Abs(first - second)
long Dot(ref Vector3L v)
static long Dot(Vector3L vector1, Vector3L vector2)
static long Dot(ref Vector3L vector1, ref Vector3L vector2)
static void Dot(ref Vector3L vector1, ref Vector3L vector2, ref long dot)
static bool TryParseFromString(string p, ref Vector3L vec)
long Volume()
static IEnumerable<Vector3L>&nbsp;EnumerateRange(Vector3L&nbsp;minInclusive,&nbsp;Vector3L&nbsp;maxExclusive) Enumerate all values in a longeger longerval (a cuboid). This method is an allocating version of the Vector3L_RangeIterator. This once can be used in the foreach syntax though so it's more convenient for debug routines.
void&nbsp;ToBytes(List<byte>&nbsp;result)

Clone this wiki locally