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

Public Member Functions

 BVec2 (float x, float y)
 
override string ToString ()
 

Static Public Member Functions

static implicit operator Vector2 (BVec2 v)
 
static implicit operator BVec2 (Vector2 v)
 

Public Attributes

bfloat _x
 
bfloat _y
 

Constructor & Destructor Documentation

◆ BVec2()

BrawlLib.Internal.BVec2.BVec2 ( float  x,
float  y 
)
inline
341 {
342 _x = x;
343 _y = y;
344 }
bfloat _x
Definition: BigEndianTypes.cs:337
bfloat _y
Definition: BigEndianTypes.cs:338

Member Function Documentation

◆ operator BVec2()

static implicit BrawlLib.Internal.BVec2.operator BVec2 ( Vector2  v)
inlinestatic
359 {
360 return new BVec2(v._x, v._y);
361 }
BVec2(float x, float y)
Definition: BigEndianTypes.cs:340

◆ operator Vector2()

static implicit BrawlLib.Internal.BVec2.operator Vector2 ( BVec2  v)
inlinestatic
354 {
355 return new Vector2(v._x, v._y);
356 }

◆ ToString()

override string BrawlLib.Internal.BVec2.ToString ( )
inline
347 {
348 return CultureInfo.CurrentCulture.NumberFormat.NumberDecimalSeparator.Contains(",")
349 ? $"({(float) _x} {(float) _y})"
350 : $"({(float) _x}, {(float) _y})";
351 }

Member Data Documentation

◆ _x

bfloat BrawlLib.Internal.BVec2._x

◆ _y

bfloat BrawlLib.Internal.BVec2._y

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