C# Class FarseerPhysics.Common.TextureConverter

ファイルを表示 Open project: scastle/Solitude Class Usage Examples

Public Methods

Method Description
CreateVertices ( uint data, int width, int height, float hullTolerance, byte alphaTolerance, bool multiPartDetection, bool holeDetection ) : List
CreateVertices ( uint data, int width, int height ) : Vertices
CreateVertices ( uint data, int width, int height, bool holeDetection ) : Vertices

Private Methods

Method Description
CreateSimplePolygon ( PolygonCreationAssistance pca, Vector2 entrance, Vector2 last ) : Vertices
CreateVertices ( PolygonCreationAssistance pca ) : List
DistanceToHullAcceptable ( PolygonCreationAssistance pca, Vertices polygon, Vector2 point, bool higherDetail ) : bool
GetBottomMostCoord ( Vertices vertices ) : float
GetCrossingEdges ( Vertices polygon, EdgeAlignment edgeAlign, int checkLine ) : List
GetHoleHullEntrance ( PolygonCreationAssistance pca, Vertices polygon, Vector2 startVertex ) : Vector2?
GetHullEntrance ( PolygonCreationAssistance pca, Vector2 &entrance ) : bool
GetIndexOfFirstPixelToCheck ( Vector2 last, Vector2 current ) : int
GetNextHullEntrance ( PolygonCreationAssistance pca, Vector2 start, Vector2 &entrance ) : bool
GetNextHullPoint ( PolygonCreationAssistance pca, Vector2 &last, Vector2 &current, Vector2 &next ) : bool
GetTopMostCoord ( Vertices vertices ) : float
GetTopMostVertex ( Vertices vertices ) : Vector2?
InPolygon ( PolygonCreationAssistance pca, Vertices &polygon, Vector2 point ) : bool
IsNearPixel ( PolygonCreationAssistance pca, Vector2 current, Vector2 near ) : bool
SearchForOutstandingVertex ( Vertices hullArea, float hullTolerance, Vector2 &outstanding ) : bool
SearchNearPixels ( PolygonCreationAssistance pca, bool searchingForSolidPixel, Vector2 current, Vector2 &foundPixel ) : bool
SplitPolygonEdge ( Vertices polygon, EdgeAlignment edgeAlign, Vector2 coordInsideThePolygon, int &vertex1Index, int &vertex2Index ) : bool

Method Details

CreateVertices() public static method

public static CreateVertices ( uint data, int width, int height, float hullTolerance, byte alphaTolerance, bool multiPartDetection, bool holeDetection ) : List
data uint
width int
height int
hullTolerance float
alphaTolerance byte
multiPartDetection bool
holeDetection bool
return List

CreateVertices() public static method

public static CreateVertices ( uint data, int width, int height ) : Vertices
data uint
width int
height int
return Vertices

CreateVertices() public static method

public static CreateVertices ( uint data, int width, int height, bool holeDetection ) : Vertices
data uint
width int
height int
holeDetection bool
return Vertices