BrawlCrate v0.41
Wii File Editor
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Properties | List of all members
BrawlLib.Modeling.PointTriangle Class Reference
Inheritance diagram for BrawlLib.Modeling.PointTriangle:
BrawlLib.Modeling.PrimitiveClass

Public Member Functions

 PointTriangle ()
 
 PointTriangle (Facepoint x, Facepoint y, Facepoint z)
 
bool Contains (Facepoint f)
 

Public Attributes

Facepoint _x
 
Facepoint _y
 
Facepoint _z
 

Properties

Facepoint this[int i] [get, set]
 
override List< FacepointPoints [get, set]
 
- Properties inherited from BrawlLib.Modeling.PrimitiveClass
virtual List< FacepointPoints [get, set]
 

Additional Inherited Members

- Static Public Member Functions inherited from BrawlLib.Modeling.PrimitiveClass
static int Compare (PrimitiveClass p1, PrimitiveClass p2)
 

Constructor & Destructor Documentation

◆ PointTriangle() [1/2]

BrawlLib.Modeling.PointTriangle.PointTriangle ( )
inline
460 {
461 }

◆ PointTriangle() [2/2]

BrawlLib.Modeling.PointTriangle.PointTriangle ( Facepoint  x,
Facepoint  y,
Facepoint  z 
)
inline
464 {
465 _x = x;
466 _y = y;
467 _z = z;
468 }
Facepoint _z
Definition: Face.cs:416
Facepoint _x
Definition: Face.cs:414
Facepoint _y
Definition: Face.cs:415

Member Function Documentation

◆ Contains()

bool BrawlLib.Modeling.PointTriangle.Contains ( Facepoint  f)
inline
471 {
472 if (_x == f)
473 {
474 return true;
475 }
476
477 if (_y == f)
478 {
479 return true;
480 }
481
482 if (_z == f)
483 {
484 return true;
485 }
486
487 return false;
488 }

Member Data Documentation

◆ _x

Facepoint BrawlLib.Modeling.PointTriangle._x

◆ _y

Facepoint BrawlLib.Modeling.PointTriangle._y

◆ _z

Facepoint BrawlLib.Modeling.PointTriangle._z

Property Documentation

◆ Points

override List<Facepoint> BrawlLib.Modeling.PointTriangle.Points
getset
449 {
450 get => new List<Facepoint> {_x, _y, _z};
451 set
452 {
453 _x = value[0];
454 _y = value[1];
455 _z = value[2];
456 }
457 }

◆ this[int i]

Facepoint BrawlLib.Modeling.PointTriangle.this[int i]
getset
419 {
420 get
421 {
422 switch (i)
423 {
424 case 0: return _x;
425 case 1: return _y;
426 case 2: return _z;
427 }
428
429 return null;
430 }
431 set
432 {
433 switch (i)
434 {
435 case 0:
436 _x = value;
437 break;
438 case 1:
439 _y = value;
440 break;
441 case 2:
442 _z = value;
443 break;
444 }
445 }
446 }

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