C# Class FarseerPhysics.Common.Decomposition.Seidel.Trapezoid

Show file Open project: tinco/Farseer-Physics Class Usage Examples

Public Properties

Property Type Description
Bottom Edge
Inside bool
LeftPoint Point
LowerLeft Trapezoid
LowerRight Trapezoid
RightPoint Point
Sink Sink
Top Edge
UpperLeft Trapezoid
UpperRight Trapezoid

Public Methods

Method Description
AddPoints ( ) : void
Contains ( Point point ) : bool
GetVertices ( ) : List
Trapezoid ( Point leftPoint, Point rightPoint, Edge top, Edge bottom ) : System.Collections.Generic
TrimNeighbors ( ) : void
UpdateLeft ( Trapezoid ul, Trapezoid ll ) : void
UpdateLeftRight ( Trapezoid ul, Trapezoid ll, Trapezoid ur, Trapezoid lr ) : void
UpdateRight ( Trapezoid ur, Trapezoid lr ) : void

Private Methods

Method Description
LineIntersect ( Edge edge, float x ) : Point

Method Details

AddPoints() public method

public AddPoints ( ) : void
return void

Contains() public method

public Contains ( Point point ) : bool
point Point
return bool

GetVertices() public method

public GetVertices ( ) : List
return List

Trapezoid() public method

public Trapezoid ( Point leftPoint, Point rightPoint, Edge top, Edge bottom ) : System.Collections.Generic
leftPoint Point
rightPoint Point
top Edge
bottom Edge
return System.Collections.Generic

TrimNeighbors() public method

public TrimNeighbors ( ) : void
return void

UpdateLeft() public method

public UpdateLeft ( Trapezoid ul, Trapezoid ll ) : void
ul Trapezoid
ll Trapezoid
return void

UpdateLeftRight() public method

public UpdateLeftRight ( Trapezoid ul, Trapezoid ll, Trapezoid ur, Trapezoid lr ) : void
ul Trapezoid
ll Trapezoid
ur Trapezoid
lr Trapezoid
return void

UpdateRight() public method

public UpdateRight ( Trapezoid ur, Trapezoid lr ) : void
ur Trapezoid
lr Trapezoid
return void

Property Details

Bottom public property

public Edge,FarseerPhysics.Common.Decomposition.Seidel Bottom
return Edge

Inside public property

public bool Inside
return bool

LeftPoint public property

public Point,FarseerPhysics.Common.Decomposition.Seidel LeftPoint
return Point

LowerLeft public property

public Trapezoid,FarseerPhysics.Common.Decomposition.Seidel LowerLeft
return Trapezoid

LowerRight public property

public Trapezoid,FarseerPhysics.Common.Decomposition.Seidel LowerRight
return Trapezoid

RightPoint public property

public Point,FarseerPhysics.Common.Decomposition.Seidel RightPoint
return Point

Sink public property

public Sink,FarseerPhysics.Common.Decomposition.Seidel Sink
return Sink

Top public property

public Edge,FarseerPhysics.Common.Decomposition.Seidel Top
return Edge

UpperLeft public property

public Trapezoid,FarseerPhysics.Common.Decomposition.Seidel UpperLeft
return Trapezoid

UpperRight public property

public Trapezoid,FarseerPhysics.Common.Decomposition.Seidel UpperRight
return Trapezoid