C# Class Myre.Physics.Collisions.Polygon

Inheritance: Geometry
Afficher le fichier Open project: TomGillen/Myre

Méthodes publiques

Méthode Description
Contains ( Vector2 p ) : bool
CreateProperties ( System.Entity context ) : void
GetAxes ( Geometry otherObject ) : Vector2[]
GetClosestVertex ( Vector2 point ) : Vector2
GetVertices ( Vector2 axis ) : Vector2[]
Initialise ( ) : void
Polygon ( ) : System
Project ( Vector2 axis ) : Projection

Private Methods

Méthode Description
ApplyTransform ( ) : void
CalculateAxes ( ) : void
CalculateLocalBounds ( ) : void
CalculateWorldBounds ( ) : void
CreateArrays ( int size ) : void
InitialiseLocalData ( ) : void
ReadVertices ( Property p ) : void

Method Details

Contains() public méthode

public Contains ( Vector2 p ) : bool
p Vector2
Résultat bool

CreateProperties() public méthode

public CreateProperties ( System.Entity context ) : void
context System.Entity
Résultat void

GetAxes() public méthode

public GetAxes ( Geometry otherObject ) : Vector2[]
otherObject Geometry
Résultat Vector2[]

GetClosestVertex() public méthode

public GetClosestVertex ( Vector2 point ) : Vector2
point Vector2
Résultat Vector2

GetVertices() public méthode

public GetVertices ( Vector2 axis ) : Vector2[]
axis Vector2
Résultat Vector2[]

Initialise() public méthode

public Initialise ( ) : void
Résultat void

Polygon() public méthode

public Polygon ( ) : System
Résultat System

Project() public méthode

public Project ( Vector2 axis ) : Projection
axis Vector2
Résultat Projection