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

VRageMath.Vector3I

Malware edited this page Dec 25, 2018 · 53 revisions

Index

Vector3I Struct

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

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Example

Remarks

Fields

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

Properties

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

Methods

Member Description
ToString()
Equals(Vector3I)
Equals(object)
GetHashCode()
IsInsideInclusiveEnd(ref Vector3I, ref Vector3I)
IsInsideInclusiveEnd(Vector3I, Vector3I)
IsInside(ref Vector3I, ref Vector3I)
IsInside(Vector3I, Vector3I)
RectangularDistance(Vector3I) 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, interpreted as a point, from the origin.
Length()
BoxIntersects(Vector3I, Vector3I, Vector3I, Vector3I)
BoxIntersects(ref Vector3I, ref Vector3I, ref Vector3I, ref Vector3I)
BoxContains(Vector3I, Vector3I, Vector3I)
BoxContains(ref Vector3I, ref Vector3I, ref Vector3I)
Min(Vector3I, Vector3I)
Min(ref Vector3I, ref Vector3I, ref Vector3I)
AbsMin() Returns the component of the vector, whose absolute value is smallest of all the three components.
Max(Vector3I, Vector3I)
Max(ref Vector3I, ref Vector3I, ref Vector3I)
AbsMax() Returns the component of the vector, whose absolute value is largest of all the three components.
MinMax(ref Vector3I, ref Vector3I) Separates minimal and maximal values of any two input vectors
AxisValue(Axis)
GetDominantDirection(Vector3I)
GetDominantDirectionVector(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.
DominantAxisProjection(ref Vector3I, ref 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.
Sign(Vector3)
Sign(Vector3I)
Round(Vector3)
Round(Vector3D)
Round(ref Vector3, ref Vector3I)
Round(ref Vector3D, ref Vector3I)
Floor(Vector3)
Floor(Vector3D)
Floor(ref Vector3, ref Vector3I)
Floor(ref Vector3D, ref Vector3I)
Ceiling(Vector3)
Trunc(Vector3)
Shift(Vector3I)
Transform(ref Vector3I, ref Matrix, ref Vector3I) Transforms a Vector3I by the given Matrix.
Transform(ref Vector3I, ref Quaternion, ref Vector3I)
Transform(Vector3I, Quaternion)
Transform(ref Vector3I, ref MatrixI, ref Vector3I)
Transform(Vector3I, MatrixI)
Transform(Vector3I, ref MatrixI)
TransformNormal(Vector3I, ref MatrixI)
TransformNormal(ref Vector3I, ref Matrix, ref Vector3I) Transforms a vector normal by a matrix.
TransformNormal(ref Vector3I, ref MatrixI, ref Vector3I)
Cross(ref Vector3I, ref Vector3I, ref Vector3I) Calculates the cross product of two vectors.
CompareTo(Vector3I)
Abs(Vector3I)
Abs(ref Vector3I, ref Vector3I)
Clamp(Vector3I, Vector3I, Vector3I)
Clamp(ref Vector3I, ref Vector3I, ref Vector3I, ref Vector3I)
DistanceManhattan(Vector3I, Vector3I) Manhattan distance (cube distance) X + Y + Z of Abs(first - second)
Dot(ref Vector3I)
Dot(Vector3I, Vector3I)
Dot(ref Vector3I, ref Vector3I)
Dot(ref Vector3I, ref Vector3I, ref int)
TryParseFromString(string, ref Vector3I)
Volume()
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.
ToBytes(List)
IsAxisAligned()
Clone this wiki locally