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

Public Member Functions

 Vec4f ()
 Initializes a zero vector (0,0).
 Vec4f (float _x, float _y, float _z, float _w)
 Initializes a vector with explicit X Y Z W values.
 Vec4f (float _f)
 Initializes both components with the same value.
 Vec4f (Vec4f vec)
 Copy constructor.
 Vec4f (float[] lpvec)
 Initializes the vector from a float array.
float 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 (Vec4f a)
 Compares two vectors lexicographically.
bool Equals (Vec4f other)
 Determines whether this instance is equal to another Half16 value, using the same semantics as the operator ==(Vec4f,Vec4f).
override bool Equals (object? obj)
 Determines whether this instance is equal to another object.
int IComparable< Vec4f >. CompareTo (Vec4f 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 float Lenght (Vec4f v)
 Computes the squared length of the vector.
static float LenghtSqrt (Vec4f v)
 Computes the Euclidean length of the vector.
static float Dot (Vec4f v1, Vec4f v2)
 Computes the dot product of two vectors.
static float Angle (Vec4f v1, Vec4f v2)
 Computes the angle between two vectors.
static Vec4f InterpolateCoords (Vec4f v1, Vec4f v2, float p)
 Linearly interpolates between two vectors.
static Vec4f InterpolateNormal (Vec4f v1, Vec4f v2, float p)
 Interpolates and normalizes the result.
static bool NearEqual (Vec4f v1, Vec4f v2, float epsilon)
 Checks whether two vectors are approximately equal.
static Vec4f Normalize (Vec4f v, bool ex=false)
 Normalizes the vector.
static Vec4f operator+ (Vec4f a, Vec4f b)
 Adds two vectors component‑wise.
static Vec4f operator- (Vec4f a, Vec4f b)
 Subtracts two vectors component‑wise.
static Vec4f operator/ (Vec4f a, Vec4f b)
 Divides two vectors component‑wise.
static Vec4f operator* (Vec4f a, Vec4f b)
 Multiplies two vectors component‑wise.
static Vec4f operator+ (Vec4f a, float b)
 Adds a scalar to both components of the vector.
static Vec4f operator- (Vec4f a, float b)
 Subtracts a scalar from both components of the vector.
static Vec4f operator/ (Vec4f a, float b)
 Divides both components of the vector by a scalar.
static Vec4f operator* (Vec4f a, float b)
static Vec4f operator- (float a, Vec4f b)
 Subtracts each component of the vector from a scalar.
static Vec4f operator/ (float a, Vec4f b)
static Vec4f operator* (float a, Vec4f b)
 Multiplies a scalar with each component of the vector.
static Vec4f operator+ (float a, Vec4f b)
 Adds a scalar to each component of the vector.
static bool operator== (Vec4f a, Vec4f b)
 Determines whether two vectors are equal component‑wise.
static bool operator!= (Vec4f a, Vec4f b)
 Determines whether two vectors differ in any component.
static bool operator<= (Vec4f a, Vec4f b)
 Determines whether all components of a are less than or equal to those of b .
static bool operator>= (Vec4f a, Vec4f b)
 Determines whether all components of a are greater than or equal to those of b .
static bool operator< (Vec4f a, Vec4f b)
 Determines whether all components of a are strictly less than those of b .
static bool operator> (Vec4f a, Vec4f b)
 Determines whether all components of a are strictly greater than those of b .
static bool operator== (float a, Vec4f b)
 Determines whether a scalar equals both components of the vector.
static bool operator!= (float a, Vec4f b)
 Determines whether a scalar differs from any component of the vector.
static bool operator<= (float a, Vec4f b)
 Determines whether a scalar is less than or equal to both vector components.
static bool operator>= (float a, Vec4f b)
 Determines whether a scalar is greater than or equal to both vector components.
static bool operator< (float a, Vec4f b)
 Determines whether a scalar is strictly less than both vector components.
static bool operator> (float a, Vec4f b)
 Determines whether a scalar is strictly greater than both vector components.
static bool operator== (Vec4f a, float b)
 Determines whether both vector components equal the scalar.
static bool operator!= (Vec4f a, float b)
 Determines whether any vector component differs from the scalar.
static bool operator<= (Vec4f a, float b)
 Determines whether both vector components are less than or equal to the scalar.
static bool operator>= (Vec4f a, float b)
 Determines whether both vector components are greater than or equal to the scalar.
static bool operator< (Vec4f a, float b)
 Determines whether both vector components are strictly less than the scalar.
static bool operator> (Vec4f a, float b)
 Determines whether both vector components are strictly greater than the scalar.

Static Public Attributes

static readonly Vec4f Zero = new Vec4f(0)
 Represents Vector(0).
static readonly Vec4f One = new Vec4f(1f)
 Represents Vector(1).
static readonly Vec4f NegativeOne = new Vec4f(-1f)
 Represents Vector(-1).
static readonly Vec4f Min = new Vec4f(float.MinValue)
 Represents Vector(MIN).
static readonly Vec4f Max = new Vec4f(float.MaxValue)
 Represents Vector(MAX).

Properties

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

Constructor & Destructor Documentation

◆ Vec4f() [1/5]

SystemEx.Numeric.Vec4f.Vec4f ( )

Initializes a zero vector (0,0).

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

◆ Vec4f() [2/5]

SystemEx.Numeric.Vec4f.Vec4f ( float _x,
float _y,
float _z,
float _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 }

◆ Vec4f() [3/5]

SystemEx.Numeric.Vec4f.Vec4f ( float _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 }

◆ Vec4f() [4/5]

SystemEx.Numeric.Vec4f.Vec4f ( Vec4f 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:

◆ Vec4f() [5/5]

SystemEx.Numeric.Vec4f.Vec4f ( float[] lpvec)

Initializes the vector from a float 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()

float SystemEx.Numeric.Vec4f.Angle ( Vec4f v1,
Vec4f v2 )
static

Computes the angle between two vectors.

179 {
180 return System.MathF.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.MathF.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 }
@ System
forward indexing
Definition FlexSpan.cs:32
Here is the call graph for this function:

◆ CompareTo() [1/3]

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

Compares this vector to another object.

239 {
240 if ( (obj is Vec4f) ) {
241 return (int)CompareTo((Vec4f)(obj));
242 }
243 throw new ArgumentException("Object is not a Vec4f object");
244 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ CompareTo() [2/3]

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

Compares two vectors lexicographically.

248 {
249 CompareResult _ret = CompareResult.Equal;
250
251 if ( this < a ) _ret = CompareResult.AIsSmallerB;
252 else if ( this > a ) _ret = CompareResult.AIsLargerB;
253
254
255 return _ret;
256 }
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< Vec4f >. SystemEx.Numeric.Vec4f.CompareTo ( Vec4f other)
287 {
288 return (int)CompareTo(other);
289 }

◆ Dot()

float SystemEx.Numeric.Vec4f.Dot ( Vec4f v1,
Vec4f 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.Vec4f.Equals ( object? obj)

Determines whether this instance is equal to another object.

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

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

◆ Equals() [2/2]

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

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

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

◆ Get()

float SystemEx.Numeric.Vec4f.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.Vec4f.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.

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

◆ InterpolateCoords()

Vec4f SystemEx.Numeric.Vec4f.InterpolateCoords ( Vec4f v1,
Vec4f v2,
float p )
static

Linearly interpolates between two vectors.

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

◆ InterpolateNormal()

Vec4f SystemEx.Numeric.Vec4f.InterpolateNormal ( Vec4f v1,
Vec4f v2,
float p )
static

Interpolates and normalizes the result.

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

◆ Lenght()

float SystemEx.Numeric.Vec4f.Lenght ( Vec4f 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:

◆ LenghtSqrt()

float SystemEx.Numeric.Vec4f.LenghtSqrt ( Vec4f v)
static

Computes the Euclidean length of the vector.

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

◆ NearEqual()

bool SystemEx.Numeric.Vec4f.NearEqual ( Vec4f v1,
Vec4f v2,
float epsilon )
static

Checks whether two vectors are approximately equal.

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

◆ Normalize()

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

Normalizes the vector.

212 {
213 var f = v / LenghtSqrt(v);
214 return ex ? (f + 0.0001f) : f;
215 }
Here is the call graph for this function:
Here is the caller graph for this function:

◆ operator!=() [1/3]

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

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

426 {
427 return a != b.m_x && a != b.m_y && a != b.m_z && a != b.m_w;
428 }
Here is the call graph for this function:

◆ operator!=() [2/3]

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

Determines whether any vector component differs from the scalar.

468 {
469 return a.m_x != b && a.m_y != b && a.m_z != b && a.m_w != b;
470 }
Here is the call graph for this function:

◆ operator!=() [3/3]

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

Determines whether two vectors differ in any component.

388 {
389 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;
390 }
Here is the call graph for this function:

◆ operator*() [1/3]

Vec4f SystemEx.Numeric.Vec4f.operator* ( float a,
Vec4f b )
static

Multiplies a scalar with each component of the vector.

370 {
371 return new Vec4f(a * b.m_x, a * b.m_y, a * b.m_z, a * b.m_w);
372 }
Here is the call graph for this function:

◆ operator*() [2/3]

Vec4f SystemEx.Numeric.Vec4f.operator* ( Vec4f a,
float b )
static

Multiplies both components of the vector by a scalar.

352 {
353 return new Vec4f(a.m_x * b, a.m_y * b, a.m_z * b, a.m_w * b);
354 }
Here is the call graph for this function:

◆ operator*() [3/3]

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

Multiplies two vectors component‑wise.

328 {
329 return new Vec4f(a.m_x * b.m_x, a.m_y * b.m_y, a.m_z * b.m_z, a.m_w * b.m_w);
330 }
Here is the call graph for this function:

◆ operator+() [1/3]

Vec4f SystemEx.Numeric.Vec4f.operator+ ( float a,
Vec4f b )
static

Adds a scalar to each component of the vector.

376 {
377 return new Vec4f(a + b.m_x, a + b.m_y, a + b.m_z, a + b.m_w);
378 }
Here is the call graph for this function:

◆ operator+() [2/3]

Vec4f SystemEx.Numeric.Vec4f.operator+ ( Vec4f a,
float b )
static

Adds a scalar to both components of the vector.

334 {
335 return new Vec4f(a.m_x + b, a.m_y + b, a.m_z + b, a.m_w + b);
336 }
Here is the call graph for this function:

◆ operator+() [3/3]

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

Adds two vectors component‑wise.

310 {
311 return new Vec4f(a.m_x + b.m_x, a.m_y + b.m_y, a.m_z + b.m_z, a.m_w + b.m_w);
312 }
Here is the call graph for this function:

◆ operator-() [1/3]

Vec4f SystemEx.Numeric.Vec4f.operator- ( float a,
Vec4f b )
static

Subtracts each component of the vector from a scalar.

358 {
359 return new Vec4f(a - b.m_x, a - b.m_y, a - b.m_z, a - b.m_w);
360 }
Here is the call graph for this function:

◆ operator-() [2/3]

Vec4f SystemEx.Numeric.Vec4f.operator- ( Vec4f a,
float b )
static

Subtracts a scalar from both components of the vector.

340 {
341 return new Vec4f(a.m_x - b, a.m_y - b, a.m_z - b, a.m_w - b);
342 }
Here is the call graph for this function:

◆ operator-() [3/3]

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

Subtracts two vectors component‑wise.

316 {
317 return new Vec4f(a.m_x - b.m_x, a.m_y - b.m_y, a.m_z - b.m_z, a.m_w - b.m_w);
318 }
Here is the call graph for this function:

◆ operator/() [1/3]

Vec4f SystemEx.Numeric.Vec4f.operator/ ( float a,
Vec4f b )
static

Divides a scalar by each component of the vector.

364 {
365 return new Vec4f(a / b.m_x, a / b.m_y, a / b.m_z, a / b.m_w);
366 }
Here is the call graph for this function:

◆ operator/() [2/3]

Vec4f SystemEx.Numeric.Vec4f.operator/ ( Vec4f a,
float b )
static

Divides both components of the vector by a scalar.

346 {
347 return new Vec4f(a.m_x / b, a.m_y / b, a.m_z / b, a.m_w / b);
348 }
Here is the call graph for this function:

◆ operator/() [3/3]

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

Divides two vectors component‑wise.

322 {
323 return new Vec4f(a.m_x / b.m_x, a.m_y / b.m_y, a.m_z / b.m_z, a.m_w / b.m_w);
324 }
Here is the call graph for this function:

◆ operator<() [1/3]

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

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

447 {
448 return a < b.m_x && a < b.m_y && a < b.m_z && a < b.m_w;
449 }
Here is the call graph for this function:

◆ operator<() [2/3]

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

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

489 {
490 return a.m_x < b && a.m_y < b && a.m_z < b && a.m_w < b;
491 }
Here is the call graph for this function:

◆ operator<() [3/3]

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

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

406 {
407 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;
408 }
Here is the call graph for this function:

◆ operator<=() [1/3]

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

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

433 {
434 return a <= b.m_x && a <= b.m_y && a <= b.m_z && a <= b.m_w;
435 }
Here is the call graph for this function:

◆ operator<=() [2/3]

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

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

475 {
476 return a.m_x <= b && a.m_y <= b && a.m_z <= b && a.m_w <= b;
477 }
Here is the call graph for this function:

◆ operator<=() [3/3]

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

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

394 {
395 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;
396 }
Here is the call graph for this function:

◆ operator==() [1/3]

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

Determines whether a scalar equals both components of the vector.

419 {
420 return a == b.m_x && a == b.m_y && a == b.m_z && a == b.m_w;
421 }
Here is the call graph for this function:

◆ operator==() [2/3]

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

Determines whether both vector components equal the scalar.

461 {
462 return a.m_x == b && a.m_y == b && a.m_z == b && a.m_w == b;
463 }
Here is the call graph for this function:

◆ operator==() [3/3]

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

Determines whether two vectors are equal component‑wise.

382 {
383 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;
384 }
Here is the call graph for this function:

◆ operator>() [1/3]

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

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

454 {
455 return a > b.m_x && a > b.m_y && a > b.m_z && a > b.m_w;
456 }
Here is the call graph for this function:

◆ operator>() [2/3]

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

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

496 {
497 return a.m_x > b && a.m_y > b && a.m_z > b && a.m_w > b;
498 }
Here is the call graph for this function:

◆ operator>() [3/3]

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

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

412 {
413 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;
414 }
Here is the call graph for this function:

◆ operator>=() [1/3]

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

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

440 {
441 return a >= b.m_x && a >= b.m_y && a >= b.m_z && a >= b.m_w;
442 }
Here is the call graph for this function:

◆ operator>=() [2/3]

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

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

482 {
483 return a.m_x >= b && a.m_y >= b && a.m_z >= b && a.m_w >= b;
484 }
Here is the call graph for this function:

◆ operator>=() [3/3]

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

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

400 {
401 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;
402 }
Here is the call graph for this function:

◆ ToBytes()

FixedVector< byte > SystemEx.Numeric.Vec4f.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 >.

299 {
300 Cache m = new Cache(sizeof(float) * Count);
301
302 for ( byte i = 0 ; i < Count ; i++ )
303 m.WriteRange((ulong)(sizeof(float) * i), Get(i).ToBytes());
304
305 return m.ToArrayEx();
306 }
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 Vec4f SystemEx.Numeric.Vec4f.Max = new Vec4f(float.MaxValue)
static

Represents Vector(MAX).

◆ Min

readonly Vec4f SystemEx.Numeric.Vec4f.Min = new Vec4f(float.MinValue)
static

Represents Vector(MIN).

◆ NegativeOne

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

Represents Vector(-1).

◆ One

readonly Vec4f SystemEx.Numeric.Vec4f.One = new Vec4f(1f)
static

Represents Vector(1).

◆ Zero

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

Represents Vector(0).

Property Documentation

◆ Count

int SystemEx.Numeric.Vec4f.Count
get

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

◆ W

float SystemEx.Numeric.Vec4f.W
getset

Gets or sets the W component.

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

◆ X

float SystemEx.Numeric.Vec4f.X
getset

Gets or sets the X component.

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

◆ Y

float SystemEx.Numeric.Vec4f.Y
getset

Gets or sets the Y component.

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

◆ Z

float SystemEx.Numeric.Vec4f.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:
  • vec4f.cs