BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
BrawlLib.Internal.BVec4 Struct Reference

Public Member Functions

 BVec4 (float x, float y, float z, float w)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator Vector4 (BVec4 v)
 
static implicit operator BVec4 (Vector4 v)
 

Public Attributes

bfloat _x
 
bfloat _y
 
bfloat _z
 
bfloat _w
 

Constructor & Destructor Documentation

◆ BVec4()

BrawlLib.Internal.BVec4.BVec4 ( float  x,
float  y,
float  z,
float  w 
)
inline
415 {
416 _x = x;
417 _y = y;
418 _z = z;
419 _w = w;
420 }
bfloat _y
Definition: BigEndianTypes.cs:410
bfloat _x
Definition: BigEndianTypes.cs:409
bfloat _w
Definition: BigEndianTypes.cs:412
bfloat _z
Definition: BigEndianTypes.cs:411

Member Function Documentation

◆ operator BVec4()

static implicit BrawlLib.Internal.BVec4.operator BVec4 ( Vector4  v)
inlinestatic
435 {
436 return new BVec4(v._x, v._y, v._z, v._w);
437 }
BVec4(float x, float y, float z, float w)
Definition: BigEndianTypes.cs:414

◆ operator Vector4()

static implicit BrawlLib.Internal.BVec4.operator Vector4 ( BVec4  v)
inlinestatic
430 {
431 return new Vector4(v._x, v._y, v._z, v._w);
432 }

◆ ToString()

override string BrawlLib.Internal.BVec4.ToString ( )
inline
423 {
424 return CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.Contains(",")
425 ? $"({(float) _x} {(float) _y} {(float) _z} {(float) _w})"
426 : $"({(float) _x}, {(float) _y}, {(float) _z}, {(float) _w})";
427 }

Member Data Documentation

◆ _w

bfloat BrawlLib.Internal.BVec4._w

◆ _x

bfloat BrawlLib.Internal.BVec4._x

◆ _y

bfloat BrawlLib.Internal.BVec4._y

◆ _z

bfloat BrawlLib.Internal.BVec4._z

The documentation for this struct was generated from the following file: