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

Public Member Functions

 PointLine ()
 
 PointLine (Facepoint x, Facepoint y)
 
bool Contains (Facepoint f)
 

Public Attributes

Facepoint _x
 
Facepoint _y
 

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

◆ PointLine() [1/2]

BrawlLib.Modeling.PointLine.PointLine ( )
inline
545 {
546 }

◆ PointLine() [2/2]

BrawlLib.Modeling.PointLine.PointLine ( Facepoint  x,
Facepoint  y 
)
inline
549 {
550 _x = x;
551 _y = y;
552 }
Facepoint _y
Definition: Face.cs:506
Facepoint _x
Definition: Face.cs:505

Member Function Documentation

◆ Contains()

bool BrawlLib.Modeling.PointLine.Contains ( Facepoint  f)
inline
555 {
556 if (_x == f)
557 {
558 return true;
559 }
560
561 if (_y == f)
562 {
563 return true;
564 }
565
566 return false;
567 }

Member Data Documentation

◆ _x

Facepoint BrawlLib.Modeling.PointLine._x

◆ _y

Facepoint BrawlLib.Modeling.PointLine._y

Property Documentation

◆ Points

override List<Facepoint> BrawlLib.Modeling.PointLine.Points
getset
535 {
536 get => new List<Facepoint> {_x, _y};
537 set
538 {
539 _x = value[0];
540 _y = value[1];
541 }
542 }

◆ this[int i]

Facepoint BrawlLib.Modeling.PointLine.this[int i]
getset
509 {
510 get
511 {
512 switch (i)
513 {
514 case 0: return _x;
515 case 1: return _y;
516 }
517
518 return null;
519 }
520 set
521 {
522 switch (i)
523 {
524 case 0:
525 _x = value;
526 break;
527 case 1:
528 _y = value;
529 break;
530 }
531 }
532 }

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