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 Nov 2, 2020 · 53 revisions

IndexNamespace Index

Vector3I Struct

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

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; }
IsPowerOfTwo { get; }
Size { get; } How many cubes are in block with this size
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
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, out 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, out 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, 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.
Sign(Vector3)
Sign(Vector3I)
Round(Vector3)
Round(Vector3D)
Round(ref Vector3, out Vector3I)
Round(ref Vector3D, out Vector3I)
Floor(Vector3)
Floor(Vector3D)
Floor(ref Vector3, out Vector3I)
Floor(ref Vector3D, out Vector3I)
Ceiling(Vector3)
Trunc(Vector3)
Shift(Vector3I)
Transform(ref Vector3I, ref Matrix, out Vector3I) Transforms a Vector3I by the given Matrix.
Transform(ref Vector3I, ref Quaternion, out Vector3I)
Transform(Vector3I, Quaternion)
Transform(ref Vector3I, ref MatrixI, out Vector3I)
Transform(Vector3I, MatrixI)
Transform(Vector3I, ref MatrixI)
TransformNormal(Vector3I, ref MatrixI)
TransformNormal(ref Vector3I, ref Matrix, out Vector3I) Transforms a vector normal by a matrix.
TransformNormal(ref Vector3I, ref MatrixI, out Vector3I)
Cross(ref Vector3I, ref Vector3I, out Vector3I) Calculates the cross product of two vectors.
CompareTo(Vector3I)
Abs(Vector3I)
Abs(ref Vector3I, out Vector3I)
Clamp(Vector3I, Vector3I, Vector3I)
Clamp(ref Vector3I, ref Vector3I, ref Vector3I, out 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, out int)
TryParseFromString(string, out 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