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

Public Member Functions

 PartialVector3 (float? x, float? y, float? z)
 

Static Public Member Functions

static operator Vector3 (PartialVector3 v)
 
static implicit operator PartialVector3 (Vector3 v)
 

Public Attributes

float? _x
 
float? _y
 
float? _z
 

Constructor & Destructor Documentation

◆ PartialVector3()

BrawlLib.Internal.PartialVector3.PartialVector3 ( float?  x,
float?  y,
float?  z 
)
inline
17 {
18 _x = x;
19 _y = y;
20 _z = z;
21 }
float? _z
Definition: Vector3.cs:14
float? _y
Definition: Vector3.cs:14
float? _x
Definition: Vector3.cs:14

Member Function Documentation

◆ operator PartialVector3()

static implicit BrawlLib.Internal.PartialVector3.operator PartialVector3 ( Vector3  v)
inlinestatic
32 {
33 return new PartialVector3(v._x, v._y, v._z);
34 }
PartialVector3(float? x, float? y, float? z)
Definition: Vector3.cs:16

◆ operator Vector3()

static BrawlLib.Internal.PartialVector3.operator Vector3 ( PartialVector3  v)
inlineexplicitstatic
24 {
25 return new Vector3(
26 v._x ?? throw new Exception("Cannot cast to Vector3 (X value is missing)"),
27 v._y ?? throw new Exception("Cannot cast to Vector3 (Y value is missing)"),
28 v._z ?? throw new Exception("Cannot cast to Vector3 (Z value is missing)"));
29 }

Member Data Documentation

◆ _x

float? BrawlLib.Internal.PartialVector3._x

◆ _y

float? BrawlLib.Internal.PartialVector3._y

◆ _z

float? BrawlLib.Internal.PartialVector3._z

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