-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.Vector3L
← Index ← Namespace Index
public struct Vector3L: IEquatable<Vector3L>, IComparable<Vector3L>
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
static EqualityComparer Comparer
How many cubes are in block with this size
Vector3L(long x, long y, long z)
Vector3L(float x, float y, float z)
static Vector3L Abs(Vector3L value)
static void Abs(ref Vector3L value, out Vector3L result)
static bool BoxContains(Vector3L boxMin, Vector3L boxMax, Vector3L pt)
static bool BoxContains(ref Vector3L boxMin, ref Vector3L boxMax, ref Vector3L pt)
static bool Boxlongersects(Vector3L minA, Vector3L maxA, Vector3L minB, Vector3L maxB)
static Vector3L Ceiling(Vector3 value)
static Vector3L Clamp(Vector3L value1, Vector3L min, Vector3L max)
static void Clamp(ref Vector3L value1, ref Vector3L min, ref Vector3L max, out Vector3L result)
static void Cross(ref Vector3L vector1, ref Vector3L vector2, out Vector3L result)
Calculates the cross product of two vectors.
static long DistanceManhattan(Vector3L first, Vector3L second)
Manhattan distance (cube distance) X + Y + Z of Abs(first - second)
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, out 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 long Dot(Vector3L vector1, Vector3L vector2)
static long Dot(ref Vector3L vector1, ref Vector3L vector2)
static void Dot(ref Vector3L vector1, ref Vector3L vector2, out long dot)
static IEnumerable<Vector3L> EnumerateRange(Vector3L minInclusive, Vector3L 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.
static Vector3L Floor(Vector3 value)
static Vector3L Floor(Vector3D value)
static void Floor(ref Vector3 v, out Vector3L r)
static void Floor(ref Vector3D v, out Vector3L r)
static CubeFace GetDominantDirection(Vector3L val)
static Vector3L GetDominantDirectionVector(Vector3L val)
static Vector3L Max(Vector3L value1, Vector3L value2)
static void Max(ref Vector3L value1, ref Vector3L value2, out Vector3L result)
static Vector3L Min(Vector3L value1, Vector3L value2)
static void Min(ref Vector3L value1, ref Vector3L value2, out Vector3L result)
static Vector3L Round(Vector3 value)
static Vector3L Round(Vector3D value)
static void Round(ref Vector3 v, out Vector3L r)
static void Round(ref Vector3D v, out Vector3L r)
static Vector3L Shift(Vector3L value)
static Vector3L Sign(Vector3 value)
static Vector3L Sign(Vector3L value)
static void Transform(ref Vector3L position, ref Matrix matrix, out Vector3L result)
Transforms a Vector3L by the given Matrix.
static void Transform(ref Vector3L value, ref Quaternion rotation, out Vector3L result)
static Vector3L Transform(Vector3L value, Quaternion rotation)
static void TransformNormal(ref Vector3L normal, ref Matrix matrix, out Vector3L result)
Transforms a vector normal by a matrix.
static Vector3L Trunc(Vector3 value)
static bool TryParseFromString(string p, out Vector3L vec)
Returns the component of the vector, whose absolute value is largest of all the three components.
Returns the component of the vector, whose absolute value is smallest of all the three components.
bool IsInside(ref Vector3L inclusiveMin, ref Vector3L exclusiveMax)
bool IsInside(Vector3L inclusiveMin, Vector3L exclusiveMax)
bool IsInsideInclusiveEnd(ref Vector3L min, ref Vector3L max)
bool IsInsideInclusiveEnd(Vector3L min, Vector3L max)
long RectangularDistance(Vector3L otherVector)
Calculates rectangular distance. It's how many sectors you have to travel to get to other sector from current sector.
Calculates rectangular distance of this vector, longerpreted as a polong, from the origin.
void ToBytes(List<byte> result)
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!