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

Public Member Functions

 FrameState (CHRAnimationFrame frame)
 
 FrameState (Vector3 scale, Vector3 rotation, Vector3 translation)
 
void CalcTransforms ()
 
override string ToString ()
 

Static Public Member Functions

static operator CHRAnimationFrame (FrameState state)
 

Public Attributes

Vector3 _scale
 
Vector3 _rotate
 
Vector3 _translate
 
Matrix _transform
 
Matrix _iTransform
 

Static Public Attributes

static readonly FrameState Neutral = new FrameState(new Vector3(1.0f), new Vector3(), new Vector3())
 

Properties

unsafe float this[int index] [get, set]
 
Vector3 Translate [get, set]
 
Vector3 Rotate [get, set]
 
Vector3 Scale [get, set]
 

Constructor & Destructor Documentation

◆ FrameState() [1/2]

BrawlLib.Modeling.FrameState.FrameState ( CHRAnimationFrame  frame)
inline
67 {
68 _scale = frame.Scale;
69 _rotate = frame.Rotation;
70 _translate = frame.Translation;
71
73 }
Vector3 _translate
Definition: FrameState.cs:14
Vector3 _rotate
Definition: FrameState.cs:13
void CalcTransforms()
Definition: FrameState.cs:84
Vector3 _scale
Definition: FrameState.cs:12
Vector3 Translation
Definition: AnimationFrame.cs:20
Vector3 Scale
Definition: AnimationFrame.cs:18
Vector3 Rotation
Definition: AnimationFrame.cs:19

◆ FrameState() [2/2]

BrawlLib.Modeling.FrameState.FrameState ( Vector3  scale,
Vector3  rotation,
Vector3  translation 
)
inline
76 {
77 _scale = scale;
78 _rotate = rotation;
79 _translate = translation;
80
82 }

Member Function Documentation

◆ CalcTransforms()

void BrawlLib.Modeling.FrameState.CalcTransforms ( )
inline
85 {
88 }
Definition: Matrix.cs:14
static Matrix TransformMatrix(Vector3 scale, Vector3 rotate, Vector3 translate)
Definition: Matrix.cs:1214
static Matrix ReverseTransformMatrix(Vector3 scale, Vector3 rotation, Vector3 translation)
Definition: Matrix.cs:1246
Matrix _transform
Definition: FrameState.cs:16
Matrix _iTransform
Definition: FrameState.cs:16

◆ operator CHRAnimationFrame()

static BrawlLib.Modeling.FrameState.operator CHRAnimationFrame ( FrameState  state)
inlineexplicitstatic
98 {
99 return new CHRAnimationFrame(state._scale, state._rotate, state._translate);
100 }
Definition: AnimationFrame.cs:12

◆ ToString()

override string BrawlLib.Modeling.FrameState.ToString ( )
inline
91 {
92 return $"{_scale.ToString()}{_rotate.ToString()}{_translate.ToString()}";
93 }

Member Data Documentation

◆ _iTransform

Matrix BrawlLib.Modeling.FrameState._iTransform

◆ _rotate

Vector3 BrawlLib.Modeling.FrameState._rotate

◆ _scale

Vector3 BrawlLib.Modeling.FrameState._scale

◆ _transform

Matrix BrawlLib.Modeling.FrameState._transform

◆ _translate

Vector3 BrawlLib.Modeling.FrameState._translate

◆ Neutral

readonly FrameState BrawlLib.Modeling.FrameState.Neutral = new FrameState(new Vector3(1.0f), new Vector3(), new Vector3())
static

Property Documentation

◆ Rotate

Vector3 BrawlLib.Modeling.FrameState.Rotate
getset
47 {
48 get => _rotate;
49 set
50 {
51 _rotate = value;
53 }
54 }

◆ Scale

Vector3 BrawlLib.Modeling.FrameState.Scale
getset
57 {
58 get => _scale;
59 set
60 {
61 _scale = value;
63 }
64 }

◆ this[int index]

unsafe float BrawlLib.Modeling.FrameState.this[int index]
getset
19 {
20 get
21 {
22 fixed (FrameState* f = &this)
23 {
24 return ((float*) f)[index];
25 }
26 }
27 set
28 {
29 fixed (FrameState* f = &this)
30 {
31 ((float*) f)[index] = value;
32 }
33 }
34 }

◆ Translate

Vector3 BrawlLib.Modeling.FrameState.Translate
getset
37 {
38 get => _translate;
39 set
40 {
41 _translate = value;
43 }
44 }

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