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

VRageMath.Vector3L

Morten Aune Lyrstad edited this page Feb 17, 2020 · 52 revisions

IndexNamespace Index

Vector3L Struct

public struct Vector3L: IEquatable<VRageMath.Vector3L>, IComparable<VRageMath.Vector3L>

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

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

Properties

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

Constructors

Member Description
Vector3L(long)
Vector3L(long, long, long)
Vector3L(Vector3)
Vector3L(Vector3D)
Vector3L(Vector3S)
Vector3L(float, float, float)

Methods

Member Description
ToString()
Equals(Vector3L)
Equals(object)
GetHashCode()
IsInsideInclusiveEnd(ref Vector3L, ref Vector3L)
IsInsideInclusiveEnd(Vector3L, Vector3L)
IsInside(ref Vector3L, ref Vector3L)
IsInside(Vector3L, Vector3L)
RectangularDistance(Vector3L) Calculates rectangular distance. It's how many sectors you have to travel to get to other sector from current sector.
RectangularLength() Calculates rectangular distance of this vector, longerpreted as a polong, from the origin.
Length()
Boxlongersects(Vector3L, Vector3L, Vector3L, Vector3L)
Boxlongersects(ref Vector3L, ref Vector3L, ref Vector3L, ref Vector3L)
BoxContains(Vector3L, Vector3L, Vector3L)
BoxContains(ref Vector3L, ref Vector3L, ref Vector3L)
Min(Vector3L, Vector3L)
Min(ref Vector3L, ref Vector3L, out Vector3L)
AbsMin() Returns the component of the vector, whose absolute value is smallest of all the three components.
Max(Vector3L, Vector3L)
Max(ref Vector3L, ref Vector3L, out Vector3L)
AbsMax() Returns the component of the vector, whose absolute value is largest of all the three components.
AxisValue(Axis)
GetDominantDirection(Vector3L)
GetDominantDirectionVector(Vector3L)
DominantAxisProjection(Vector3L) 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.
DominantAxisProjection(ref Vector3L, out Vector3L) 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.
Sign(Vector3)
Sign(Vector3L)
Round(Vector3)
Round(Vector3D)
Round(ref Vector3, out Vector3L)
Round(ref Vector3D, out Vector3L)
Floor(Vector3)
Floor(Vector3D)
Floor(ref Vector3, out Vector3L)
Floor(ref Vector3D, out Vector3L)
Ceiling(Vector3)
Trunc(Vector3)
Shift(Vector3L)
Transform(ref Vector3L, ref Matrix, out Vector3L) Transforms a Vector3L by the given Matrix.
Transform(ref Vector3L, ref Quaternion, out Vector3L)
Transform(Vector3L, Quaternion)
TransformNormal(ref Vector3L, ref Matrix, out Vector3L) Transforms a vector normal by a matrix.
Cross(ref Vector3L, ref Vector3L, out Vector3L) Calculates the cross product of two vectors.
CompareTo(Vector3L)
Abs(Vector3L)
Abs(ref Vector3L, out Vector3L)
Clamp(Vector3L, Vector3L, Vector3L)
Clamp(ref Vector3L, ref Vector3L, ref Vector3L, out Vector3L)
DistanceManhattan(Vector3L, Vector3L) Manhattan distance (cube distance) X + Y + Z of Abs(first - second)
Dot(ref Vector3L)
Dot(Vector3L, Vector3L)
Dot(ref Vector3L, ref Vector3L)
Dot(ref Vector3L, ref Vector3L, out long)
TryParseFromString(string, out Vector3L)
Volume()
EnumerateRange(Vector3L, Vector3L) 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.
ToBytes(List)
Clone this wiki locally