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

Public Member Functions

 Box (Vector3 min, Vector3 max)
 
void ExpandVolume (Vector3 value)
 
void ExpandVolume (Box value)
 

Static Public Member Functions

static Box GetVolume (Vector3[] points)
 
static implicit operator Box (BBox val)
 

Static Public Attributes

static readonly Box ExpandableVolume = new Box(new Vector3(float.MaxValue), new Vector3(float.MinValue))
 
static readonly Box ZeroBox = new Box()
 

Properties

Vector3 Min [get, set]
 
Vector3 Max [get, set]
 
bool IsValid [get]
 

Constructor & Destructor Documentation

◆ Box()

BrawlLib.Internal.Box.Box ( Vector3  min,
Vector3  max 
)
inline
24 {
25 _min = min;
26 _max = max;
27 }

Member Function Documentation

◆ ExpandVolume() [1/2]

void BrawlLib.Internal.Box.ExpandVolume ( Box  value)
inline
36 {
37 ExpandVolume(value.Min);
38 ExpandVolume(value.Max);
39 }
void ExpandVolume(Vector3 value)
Definition: Box.cs:29

◆ ExpandVolume() [2/2]

void BrawlLib.Internal.Box.ExpandVolume ( Vector3  value)
inline
30 {
31 _min.Min(value);
32 _max.Max(value);
33 }
static Vector3 Max(Vector3 v1, Vector3 v2)
Definition: Vector3.cs:358
static Vector3 Min(Vector3 v1, Vector3 v2)
Definition: Vector3.cs:316

◆ GetVolume()

static Box BrawlLib.Internal.Box.GetVolume ( Vector3[]  points)
inlinestatic
42 {
43 if (points == null || points.Length == 0)
44 {
45 return new Box();
46 }
47
49 foreach (Vector3 point in points)
50 {
51 box.ExpandVolume(point);
52 }
53
54 return box;
55 }
Box(Vector3 min, Vector3 max)
Definition: Box.cs:23
static readonly Box ExpandableVolume
Definition: Box.cs:7

◆ operator Box()

static implicit BrawlLib.Internal.Box.operator Box ( BBox  val)
inlinestatic
60 {
61 return new Box(val.Min, val.Max);
62 }

Member Data Documentation

◆ ExpandableVolume

readonly Box BrawlLib.Internal.Box.ExpandableVolume = new Box(new Vector3(float.MaxValue), new Vector3(float.MinValue))
static

◆ ZeroBox

readonly Box BrawlLib.Internal.Box.ZeroBox = new Box()
static

Property Documentation

◆ IsValid

bool BrawlLib.Internal.Box.IsValid
get

◆ Max

Vector3 BrawlLib.Internal.Box.Max
getset
18 {
19 get => _max;
20 set => _max = value;
21 }

◆ Min

Vector3 BrawlLib.Internal.Box.Min
getset
12 {
13 get => _min;
14 set => _min = value;
15 }

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