SystemEX  Lacking
Additional generic collection types missing in .net
SystemEx.Numeric.Vec4i Struct Reference
Inheritance diagram for SystemEx.Numeric.Vec4i:
Collaboration diagram for SystemEx.Numeric.Vec4i:

Public Member Functions

 Vec4i ()
 Initializes a zero vector (0,0).
 Vec4i (int _x, int _y, int _z, int _w)
 Initializes a vector with explicit X Y Z W values.
 Vec4i (int _f)
 Initializes both components with the same value.
 Vec4i (Vec4i vec)
 Copy constructor.
 Vec4i (int[] lpvec)
 Initializes the vector from a int array.
int Get (int index)
 Gets a component by index (0 = X, 1 = Y).
override int GetHashCode ()
 Computes a hash code for this vector.
int CompareTo (object? obj)
 Compares this vector to another object.
CompareResult CompareTo (Vec4i a)
 Compares two vectors lexicographically.
bool Equals (Vec4i other)
 Determines whether this instance is equal to another Half16 value, using the same semantics as the operator ==(Vec4i,Vec4i).
override bool Equals (object? obj)
 Determines whether this instance is equal to another object.
int IComparable< Vec4i >. CompareTo (Vec4i other)
FixedVector< byte > ToBytes ()
 Converts the vector into a deterministic byte sequence.
Public Member Functions inherited from SystemEx.IComparableEx< T >
CompareResult CompareTo (T a)
 Compares this instance with the specified value and returns a CompareResult describing the relationship between them.

Static Public Member Functions

static int Lenght (Vec4i v)
 Computes the squared length of the vector.
static int LenghtSqrt (Vec4i v)
 Computes the Euclidean length of the vector.
static int Dot (Vec4i v1, Vec4i v2)
 Computes the dot product of two vectors.
static int Angle (Vec4i v1, Vec4i v2)
 Computes the angle between two vectors.
static Vec4i InterpolateCoords (Vec4i v1, Vec4i v2, int p)
 Linearly interpolates between two vectors.
static Vec4i InterpolateNormal (Vec4i v1, Vec4i v2, int p)
 Interpolates and normalizes the result.
static bool NearEqual (Vec4i v1, Vec4i v2, int epsilon)
 Checks whether two vectors are approximately equal.
static Vec4i Normalize (Vec4i v, bool ex=false)
 Normalizes the integer vector by dividing each component by its length. Integer normalization is discrete and does not apply floating‑point stability offsets.
static Vec4i operator+ (Vec4i a, Vec4i b)
 Adds two vectors component‑wise.
static Vec4i operator- (Vec4i a, Vec4i b)
 Subtracts two vectors component‑wise.
static Vec4i operator/ (Vec4i a, Vec4i b)
 Divides two vectors component‑wise.
static Vec4i operator* (Vec4i a, Vec4i b)
 Multiplies two vectors component‑wise.
static Vec4i operator+ (Vec4i a, int b)
 Adds a scalar to both components of the vector.
static Vec4i operator- (Vec4i a, int b)
 Subtracts a scalar from both components of the vector.
static Vec4i operator/ (Vec4i a, int b)
 Divides both components of the vector by a scalar.
static Vec4i operator* (Vec4i a, int b)
static Vec4i operator- (int a, Vec4i b)
 Subtracts each component of the vector from a scalar.
static Vec4i operator/ (int a, Vec4i b)
static Vec4i operator* (int a, Vec4i b)
 Multiplies a scalar with each component of the vector.
static Vec4i operator+ (int a, Vec4i b)
 Adds a scalar to each component of the vector.
static bool operator== (Vec4i a, Vec4i b)
 Determines whether two vectors are equal component‑wise.
static bool operator!= (Vec4i a, Vec4i b)
 Determines whether two vectors differ in any component.
static bool operator<= (Vec4i a, Vec4i b)
 Determines whether all components of a are less than or equal to those of b .
static bool operator>= (Vec4i a, Vec4i b)
 Determines whether all components of a are greater than or equal to those of b .
static bool operator< (Vec4i a, Vec4i b)
 Determines whether all components of a are strictly less than those of b .
static bool operator> (Vec4i a, Vec4i b)
 Determines whether all components of a are strictly greater than those of b .
static bool operator== (int a, Vec4i b)
 Determines whether a scalar equals both components of the vector.
static bool operator!= (int a, Vec4i b)
 Determines whether a scalar differs from any component of the vector.
static bool operator<= (int a, Vec4i b)
 Determines whether a scalar is less than or equal to both vector components.
static bool operator>= (int a, Vec4i b)
 Determines whether a scalar is greater than or equal to both vector components.
static bool operator< (int a, Vec4i b)
 Determines whether a scalar is strictly less than both vector components.
static bool operator> (int a, Vec4i b)
 Determines whether a scalar is strictly greater than both vector components.
static bool operator== (Vec4i a, int b)
 Determines whether both vector components equal the scalar.
static bool operator!= (Vec4i a, int b)
 Determines whether any vector component differs from the scalar.
static bool operator<= (Vec4i a, int b)
 Determines whether both vector components are less than or equal to the scalar.
static bool operator>= (Vec4i a, int b)
 Determines whether both vector components are greater than or equal to the scalar.
static bool operator< (Vec4i a, int b)
 Determines whether both vector components are strictly less than the scalar.
static bool operator> (Vec4i a, int b)
 Determines whether both vector components are strictly greater than the scalar.

Static Public Attributes

static readonly Vec4i Zero = new Vec4i(0)
 Represents Vector(0,0,0).
static readonly Vec4i One = new Vec4i(1)
 Represents Vector(1,1,1).
static readonly Vec4i NegativeOne = new Vec4i(-1)
 Represents Vector(-1,-1,-1).
static readonly Vec4i Min = new Vec4i(int.MinValue)
 Represents Vector(MIN,MIN,MIN).
static readonly Vec4i Max = new Vec4i(int.MaxValue)
 Represents Vector(MAX,MAX,MAX).

Properties

int Count [get]
 Gets the number of components in this vector (always 4).
int X [get, set]
 Gets or sets the X component.
int Y [get, set]
 Gets or sets the Y component.
int Z [get, set]
 Gets or sets the Z component.
int W [get, set]
 Gets or sets the W component.

Constructor & Destructor Documentation

◆ Vec4i() [1/5]

SystemEx.Numeric.Vec4i.Vec4i ( )

Initializes a zero vector (0,0).

99 {
100 m_x = m_y = m_z = m_w = 0;
101 }
Here is the caller graph for this function:

◆ Vec4i() [2/5]

SystemEx.Numeric.Vec4i.Vec4i ( int _x,
int _y,
int _z,
int _w )

Initializes a vector with explicit X Y Z W values.

106 {
107 m_x = _x;
108 m_y = _y;
109 m_z = _z;
110 m_w = _w;
111 }

◆ Vec4i() [3/5]

SystemEx.Numeric.Vec4i.Vec4i ( int _f)

Initializes both components with the same value.

117 {
118 m_x = _f;
119 m_y = _f;
120 m_z = _f;
121 m_w = _f;
122 }

◆ Vec4i() [4/5]

SystemEx.Numeric.Vec4i.Vec4i ( Vec4i vec)

Copy constructor.

127 {
128 m_x = vec.m_x;
129 m_y = vec.m_y;
130 m_z = vec.m_z;
131 m_w = vec.m_w;
132 }
Here is the call graph for this function:

◆ Vec4i() [5/5]

SystemEx.Numeric.Vec4i.Vec4i ( int[] lpvec)

Initializes the vector from a int array.

137 {
138 m_x = lpvec[0];
139 m_y = lpvec[1];
140 m_z = lpvec[2];
141 m_w = lpvec[3];
142 }

Member Function Documentation

◆ Angle()

int SystemEx.Numeric.Vec4i.Angle ( Vec4i v1,
Vec4i v2 )
static

Computes the angle between two vectors.

179 {
180 var _i = System.Math.Acos(v1.m_x * v2.m_x + v1.m_y * v2.m_y + v1.m_z * v2.m_z + v1.m_w * v2.m_w) /
181 System.Math.Sqrt((v1.m_x * v1.m_x + v1.m_y * v1.m_y + v1.m_z * v1.m_z + v1.m_w * v1.m_w) *
182 (v2.m_x * v2.m_x + v2.m_y * v2.m_y + v2.m_z * v2.m_z + v2.m_w * v2.m_w));
183
184 return (int)_i;
185 }
@ System
forward indexing
Definition FlexSpan.cs:32
Here is the call graph for this function:

◆ CompareTo() [1/3]

int SystemEx.Numeric.Vec4i.CompareTo ( object? obj)

Compares this vector to another object.

242 {
243 if ( (obj is Vec4i) ) {
244 return (int)CompareTo((Vec4i)(obj));
245 }
246 throw new ArgumentException("Object is not a Vec4i object");
247 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CompareTo() [2/3]

CompareResult SystemEx.Numeric.Vec4i.CompareTo ( Vec4i a)

Compares two vectors lexicographically.

251 {
252 CompareResult _ret = CompareResult.Equal;
253
254 if ( this < a ) _ret = CompareResult.AIsSmallerB;
255 else if ( this > a ) _ret = CompareResult.AIsLargerB;
256
257
258 return _ret;
259 }
CompareResult
Specifies the result of a comparison between two values.
Definition Algorithm.cs:26
Here is the call graph for this function:

◆ CompareTo() [3/3]

int IComparable< Vec4i >. SystemEx.Numeric.Vec4i.CompareTo ( Vec4i other)
290 {
291 return (int)CompareTo(other);
292 }

◆ Dot()

int SystemEx.Numeric.Vec4i.Dot ( Vec4i v1,
Vec4i v2 )
static

Computes the dot product of two vectors.

172 {
173 return (v1.m_x * v2.m_x + v1.m_y * v2.m_y + v1.m_z * v2.m_z + v1.m_w * v2.m_w);
174 }
Here is the call graph for this function:

◆ Equals() [1/2]

override bool SystemEx.Numeric.Vec4i.Equals ( object? obj)

Determines whether this instance is equal to another object.

The object is considered equal if it is a Vec4i and compares equal using Equals(Vec4i).

Parameters
objThe object to compare with.
Returns
true if obj is a Vec4i and equal to this instance; otherwise false.
285 {
286 if ( obj == null ) return false;
287 return (obj is Vec4i) && Equals((Vec4i)obj);
288 }
Here is the call graph for this function:

◆ Equals() [2/2]

bool SystemEx.Numeric.Vec4i.Equals ( Vec4i other)

Determines whether this instance is equal to another Half16 value, using the same semantics as the operator ==(Vec4i,Vec4i).

Parameters
otherThe value to compare with.
Returns
true if the values are equal; otherwise false.
270 {
271 return this.X == other.X && this.Y == other.Y && this.Z == other.Z && this.W == other.W;
272 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Get()

int SystemEx.Numeric.Vec4i.Get ( int index)

Gets a component by index (0 = X, 1 = Y).

147 {
148 return index switch
149 {
150 0 => m_x,
151 1 => m_y,
152 2 => m_z,
153 3 => m_w,
154 _ => throw new ArgumentOutOfRangeException(nameof(index))
155 };
156 }
Here is the caller graph for this function:

◆ GetHashCode()

override int SystemEx.Numeric.Vec4i.GetHashCode ( )

Computes a hash code for this vector.

The primary hash is generated using HashFactory and the HashAlgorithmAttribute applied to this struct.
If hashing fails (rare), a fallback XOR‑based hash is used.

232 {
233 var x = HashFactory.Hash32(this, 674545);
234 if ( x.Value != 0 ) return (int)x.Value;
235
236 return m_x.GetHashCode() ^ m_y.GetHashCode() ^ m_z.GetHashCode() ^ m_w.GetHashCode();
237
238 }

◆ InterpolateCoords()

Vec4i SystemEx.Numeric.Vec4i.InterpolateCoords ( Vec4i v1,
Vec4i v2,
int p )
static

Linearly interpolates between two vectors.

190 {
191 return v1 + p * (v2 - v1);
192 }
Here is the call graph for this function:

◆ InterpolateNormal()

Vec4i SystemEx.Numeric.Vec4i.InterpolateNormal ( Vec4i v1,
Vec4i v2,
int p )
static

Interpolates and normalizes the result.

197 {
198 return Normalize(v1 + p * (v2 - v1));
199 }
Here is the call graph for this function:

◆ Lenght()

int SystemEx.Numeric.Vec4i.Lenght ( Vec4i v)
static

Computes the squared length of the vector.

162=> (v.m_x * v.m_x + v.m_y * v.m_y + v.m_z * v.m_z + v.m_w * v.m_w);
Here is the call graph for this function:
Here is the caller graph for this function:

◆ LenghtSqrt()

int SystemEx.Numeric.Vec4i.LenghtSqrt ( Vec4i v)
static

Computes the Euclidean length of the vector.

167=> (int)System.Math.Sqrt(Lenght(v));
Here is the call graph for this function:
Here is the caller graph for this function:

◆ NearEqual()

bool SystemEx.Numeric.Vec4i.NearEqual ( Vec4i v1,
Vec4i v2,
int epsilon )
static

Checks whether two vectors are approximately equal.

204 {
205 return (System.Math.Abs(v1.m_x - v2.m_x) <= epsilon) &&
206 (System.Math.Abs(v1.m_y - v2.m_y) <= epsilon) &&
207 (System.Math.Abs(v1.m_z - v2.m_z) <= epsilon) &&
208 (System.Math.Abs(v1.m_w - v2.m_w) <= epsilon);
209 }
Here is the call graph for this function:

◆ Normalize()

Vec4i SystemEx.Numeric.Vec4i.Normalize ( Vec4i v,
bool ex = false )
static

Normalizes the integer vector by dividing each component by its length. Integer normalization is discrete and does not apply floating‑point stability offsets.

216 {
217 return v / LenghtSqrt(v);
218 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=() [1/3]

bool SystemEx.Numeric.Vec4i.operator!= ( int a,
Vec4i b )
static

Determines whether a scalar differs from any component of the vector.

429 {
430 return a != b.m_x && a != b.m_y && a != b.m_z && a != b.m_w;
431 }
Here is the call graph for this function:

◆ operator!=() [2/3]

bool SystemEx.Numeric.Vec4i.operator!= ( Vec4i a,
int b )
static

Determines whether any vector component differs from the scalar.

471 {
472 return a.m_x != b && a.m_y != b && a.m_z != b && a.m_w != b;
473 }
Here is the call graph for this function:

◆ operator!=() [3/3]

bool SystemEx.Numeric.Vec4i.operator!= ( Vec4i a,
Vec4i b )
static

Determines whether two vectors differ in any component.

391 {
392 return a.m_x != b.m_x && a.m_y != b.m_y && a.m_z != b.m_z && a.m_w != b.m_w;
393 }
Here is the call graph for this function:

◆ operator*() [1/3]

Vec4i SystemEx.Numeric.Vec4i.operator* ( int a,
Vec4i b )
static

Multiplies a scalar with each component of the vector.

373 {
374 return new Vec4i(a * b.m_x, a * b.m_y, a * b.m_z, a * b.m_w);
375 }
Here is the call graph for this function:

◆ operator*() [2/3]

Vec4i SystemEx.Numeric.Vec4i.operator* ( Vec4i a,
int b )
static

Multiplies both components of the vector by a scalar.

355 {
356 return new Vec4i(a.m_x * b, a.m_y * b, a.m_z * b, a.m_w * b);
357 }
Here is the call graph for this function:

◆ operator*() [3/3]

Vec4i SystemEx.Numeric.Vec4i.operator* ( Vec4i a,
Vec4i b )
static

Multiplies two vectors component‑wise.

331 {
332 return new Vec4i(a.m_x * b.m_x, a.m_y * b.m_y, a.m_z * b.m_z, a.m_w * b.m_w);
333 }
Here is the call graph for this function:

◆ operator+() [1/3]

Vec4i SystemEx.Numeric.Vec4i.operator+ ( int a,
Vec4i b )
static

Adds a scalar to each component of the vector.

379 {
380 return new Vec4i(a + b.m_x, a + b.m_y, a + b.m_z, a + b.m_w);
381 }
Here is the call graph for this function:

◆ operator+() [2/3]

Vec4i SystemEx.Numeric.Vec4i.operator+ ( Vec4i a,
int b )
static

Adds a scalar to both components of the vector.

337 {
338 return new Vec4i(a.m_x + b, a.m_y + b, a.m_z + b, a.m_w + b);
339 }
Here is the call graph for this function:

◆ operator+() [3/3]

Vec4i SystemEx.Numeric.Vec4i.operator+ ( Vec4i a,
Vec4i b )
static

Adds two vectors component‑wise.

313 {
314 return new Vec4i(a.m_x + b.m_x, a.m_y + b.m_y, a.m_z + b.m_z, a.m_w + b.m_w);
315 }
Here is the call graph for this function:

◆ operator-() [1/3]

Vec4i SystemEx.Numeric.Vec4i.operator- ( int a,
Vec4i b )
static

Subtracts each component of the vector from a scalar.

361 {
362 return new Vec4i(a - b.m_x, a - b.m_y, a - b.m_z, a - b.m_w);
363 }
Here is the call graph for this function:

◆ operator-() [2/3]

Vec4i SystemEx.Numeric.Vec4i.operator- ( Vec4i a,
int b )
static

Subtracts a scalar from both components of the vector.

343 {
344 return new Vec4i(a.m_x - b, a.m_y - b, a.m_z - b, a.m_w - b);
345 }
Here is the call graph for this function:

◆ operator-() [3/3]

Vec4i SystemEx.Numeric.Vec4i.operator- ( Vec4i a,
Vec4i b )
static

Subtracts two vectors component‑wise.

319 {
320 return new Vec4i(a.m_x - b.m_x, a.m_y - b.m_y, a.m_z - b.m_z, a.m_w - b.m_w);
321 }
Here is the call graph for this function:

◆ operator/() [1/3]

Vec4i SystemEx.Numeric.Vec4i.operator/ ( int a,
Vec4i b )
static

Divides a scalar by each component of the vector.

367 {
368 return new Vec4i(a / b.m_x, a / b.m_y, a / b.m_z, a / b.m_w);
369 }
Here is the call graph for this function:

◆ operator/() [2/3]

Vec4i SystemEx.Numeric.Vec4i.operator/ ( Vec4i a,
int b )
static

Divides both components of the vector by a scalar.

349 {
350 return new Vec4i(a.m_x / b, a.m_y / b, a.m_z / b, a.m_w / b);
351 }
Here is the call graph for this function:

◆ operator/() [3/3]

Vec4i SystemEx.Numeric.Vec4i.operator/ ( Vec4i a,
Vec4i b )
static

Divides two vectors component‑wise.

325 {
326 return new Vec4i(a.m_x / b.m_x, a.m_y / b.m_y, a.m_z / b.m_z, a.m_w / b.m_w);
327 }
Here is the call graph for this function:

◆ operator<() [1/3]

bool SystemEx.Numeric.Vec4i.operator< ( int a,
Vec4i b )
static

Determines whether a scalar is strictly less than both vector components.

450 {
451 return a < b.m_x && a < b.m_y && a < b.m_z && a < b.m_w;
452 }
Here is the call graph for this function:

◆ operator<() [2/3]

bool SystemEx.Numeric.Vec4i.operator< ( Vec4i a,
int b )
static

Determines whether both vector components are strictly less than the scalar.

492 {
493 return a.m_x < b && a.m_y < b && a.m_z < b && a.m_w < b;
494 }
Here is the call graph for this function:

◆ operator<() [3/3]

bool SystemEx.Numeric.Vec4i.operator< ( Vec4i a,
Vec4i b )
static

Determines whether all components of a are strictly less than those of b .

409 {
410 return a.m_x < b.m_x && a.m_y < b.m_y && a.m_z < b.m_z && a.m_w < b.m_w;
411 }
Here is the call graph for this function:

◆ operator<=() [1/3]

bool SystemEx.Numeric.Vec4i.operator<= ( int a,
Vec4i b )
static

Determines whether a scalar is less than or equal to both vector components.

436 {
437 return a <= b.m_x && a <= b.m_y && a <= b.m_z && a <= b.m_w;
438 }
Here is the call graph for this function:

◆ operator<=() [2/3]

bool SystemEx.Numeric.Vec4i.operator<= ( Vec4i a,
int b )
static

Determines whether both vector components are less than or equal to the scalar.

478 {
479 return a.m_x <= b && a.m_y <= b && a.m_z <= b && a.m_w <= b;
480 }
Here is the call graph for this function:

◆ operator<=() [3/3]

bool SystemEx.Numeric.Vec4i.operator<= ( Vec4i a,
Vec4i b )
static

Determines whether all components of a are less than or equal to those of b .

397 {
398 return a.m_x <= b.m_x && a.m_y <= b.m_y && a.m_z <= b.m_z && a.m_w <= b.m_w;
399 }
Here is the call graph for this function:

◆ operator==() [1/3]

bool SystemEx.Numeric.Vec4i.operator== ( int a,
Vec4i b )
static

Determines whether a scalar equals both components of the vector.

422 {
423 return a == b.m_x && a == b.m_y && a == b.m_z && a == b.m_w;
424 }
Here is the call graph for this function:

◆ operator==() [2/3]

bool SystemEx.Numeric.Vec4i.operator== ( Vec4i a,
int b )
static

Determines whether both vector components equal the scalar.

464 {
465 return a.m_x == b && a.m_y == b && a.m_z == b && a.m_w == b;
466 }
Here is the call graph for this function:

◆ operator==() [3/3]

bool SystemEx.Numeric.Vec4i.operator== ( Vec4i a,
Vec4i b )
static

Determines whether two vectors are equal component‑wise.

385 {
386 return a.m_x == b.m_x && a.m_y == b.m_y && a.m_z == b.m_z && a.m_w == b.m_w;
387 }
Here is the call graph for this function:

◆ operator>() [1/3]

bool SystemEx.Numeric.Vec4i.operator> ( int a,
Vec4i b )
static

Determines whether a scalar is strictly greater than both vector components.

457 {
458 return a > b.m_x && a > b.m_y && a > b.m_z && a > b.m_w;
459 }
Here is the call graph for this function:

◆ operator>() [2/3]

bool SystemEx.Numeric.Vec4i.operator> ( Vec4i a,
int b )
static

Determines whether both vector components are strictly greater than the scalar.

499 {
500 return a.m_x > b && a.m_y > b && a.m_z > b && a.m_w > b;
501 }
Here is the call graph for this function:

◆ operator>() [3/3]

bool SystemEx.Numeric.Vec4i.operator> ( Vec4i a,
Vec4i b )
static

Determines whether all components of a are strictly greater than those of b .

415 {
416 return a.m_x > b.m_x && a.m_y > b.m_y && a.m_z > b.m_z && a.m_w > b.m_w;
417 }
Here is the call graph for this function:

◆ operator>=() [1/3]

bool SystemEx.Numeric.Vec4i.operator>= ( int a,
Vec4i b )
static

Determines whether a scalar is greater than or equal to both vector components.

443 {
444 return a >= b.m_x && a >= b.m_y && a >= b.m_z && a >= b.m_w;
445 }
Here is the call graph for this function:

◆ operator>=() [2/3]

bool SystemEx.Numeric.Vec4i.operator>= ( Vec4i a,
int b )
static

Determines whether both vector components are greater than or equal to the scalar.

485 {
486 return a.m_x >= b && a.m_y >= b && a.m_z >= b && a.m_w >= b;
487 }
Here is the call graph for this function:

◆ operator>=() [3/3]

bool SystemEx.Numeric.Vec4i.operator>= ( Vec4i a,
Vec4i b )
static

Determines whether all components of a are greater than or equal to those of b .

403 {
404 return a.m_x >= b.m_x && a.m_y >= b.m_y && a.m_z >= b.m_z && a.m_w >= b.m_w;
405 }
Here is the call graph for this function:

◆ ToBytes()

FixedVector< byte > SystemEx.Numeric.Vec4i.ToBytes ( )

Converts the vector into a deterministic byte sequence.

This method is used by HashFactory to compute attribute‑driven hashes. The byte layout is stable and platform‑safe, ensuring consistent hashing across devices and backends.

Implements SystemEx.Hash.IHashable< T >.

302 {
303 Cache m = new Cache(sizeof(int) * Count);
304
305 for ( byte i = 0 ; i < Count ; i++ )
306 m.WriteRange((ulong)(sizeof(int) * i), Get(i).ToBytes());
307
308 return m.ToArrayEx();
309 }
FixedVector< byte > ToArrayEx()
Returns a copy of the internal buffer, as Array<T>.
Definition Cache.cs:656
virtual ulong WriteRange(ulong position, byte[] data)
Writes a byte range into the cache starting at the specified position.
Definition Cache.cs:231
Here is the call graph for this function:
Here is the caller graph for this function:

Member Data Documentation

◆ Max

readonly Vec4i SystemEx.Numeric.Vec4i.Max = new Vec4i(int.MaxValue)
static

Represents Vector(MAX,MAX,MAX).

◆ Min

readonly Vec4i SystemEx.Numeric.Vec4i.Min = new Vec4i(int.MinValue)
static

Represents Vector(MIN,MIN,MIN).

◆ NegativeOne

readonly Vec4i SystemEx.Numeric.Vec4i.NegativeOne = new Vec4i(-1)
static

Represents Vector(-1,-1,-1).

◆ One

readonly Vec4i SystemEx.Numeric.Vec4i.One = new Vec4i(1)
static

Represents Vector(1,1,1).

◆ Zero

readonly Vec4i SystemEx.Numeric.Vec4i.Zero = new Vec4i(0)
static

Represents Vector(0,0,0).

Property Documentation

◆ Count

int SystemEx.Numeric.Vec4i.Count
get

Gets the number of components in this vector (always 4).

◆ W

int SystemEx.Numeric.Vec4i.W
getset

Gets or sets the W component.

94{ get => m_w; set => m_w = value; }

◆ X

int SystemEx.Numeric.Vec4i.X
getset

Gets or sets the X component.

81{ get => m_x; set => m_x = value; }

◆ Y

int SystemEx.Numeric.Vec4i.Y
getset

Gets or sets the Y component.

86{ get => m_y; set => m_y = value; }

◆ Z

int SystemEx.Numeric.Vec4i.Z
getset

Gets or sets the Z component.

90{ get => m_z; set => m_z = value; }

The documentation for this struct was generated from the following file:
  • Vec4i.cs