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.BVec3 Struct Reference

Public Member Functions

 BVec3 (float x, float y, float z)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator Vector3 (BVec3 v)
 
static implicit operator BVec3 (Vector3 v)
 
static implicit operator Vector4 (BVec3 v)
 
static implicit operator BVec3 (Vector4 v)
 

Public Attributes

bfloat _x
 
bfloat _y
 
bfloat _z
 

Constructor & Destructor Documentation

◆ BVec3()

BrawlLib.Internal.BVec3.BVec3 ( float  x,
float  y,
float  z 
)
inline
372 {
373 _x = x;
374 _y = y;
375 _z = z;
376 }
bfloat _y
Definition: BigEndianTypes.cs:368
bfloat _x
Definition: BigEndianTypes.cs:367
bfloat _z
Definition: BigEndianTypes.cs:369

Member Function Documentation

◆ operator BVec3() [1/2]

static implicit BrawlLib.Internal.BVec3.operator BVec3 ( Vector3  v)
inlinestatic
391 {
392 return new BVec3(v._x, v._y, v._z);
393 }
BVec3(float x, float y, float z)
Definition: BigEndianTypes.cs:371

◆ operator BVec3() [2/2]

static implicit BrawlLib.Internal.BVec3.operator BVec3 ( Vector4  v)
inlinestatic
401 {
402 return new BVec3(v._x / v._w, v._y / v._w, v._z / v._w);
403 }

◆ operator Vector3()

static implicit BrawlLib.Internal.BVec3.operator Vector3 ( BVec3  v)
inlinestatic
386 {
387 return new Vector3(v._x, v._y, v._z);
388 }

◆ operator Vector4()

static implicit BrawlLib.Internal.BVec3.operator Vector4 ( BVec3  v)
inlinestatic
396 {
397 return new Vector4(v._x, v._y, v._z, 1);
398 }

◆ ToString()

override string BrawlLib.Internal.BVec3.ToString ( )
inline
379 {
380 return CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.Contains(",")
381 ? $"({(float) _x} {(float) _y} {(float) _z})"
382 : $"({(float) _x}, {(float) _y}, {(float) _z})";
383 }

Member Data Documentation

◆ _x

bfloat BrawlLib.Internal.BVec3._x

◆ _y

bfloat BrawlLib.Internal.BVec3._y

◆ _z

bfloat BrawlLib.Internal.BVec3._z

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