C# Class CatEye.Core.ConvexPolygon

ファイルを表示 Open project: bigfatbrowncat/CatEye Class Usage Examples

Public Methods

Method Description
BoundingBoxesAreCrossed ( ConvexPolygon p1, ConvexPolygon p2 ) : bool
CalcProjectionToPixel ( int i, int j, double quality ) : double
Contains ( Point p ) : bool
ConvexPolygon ( Point points ) : System
GetArea ( ) : double
HasCrossing ( Point crossing, Segment &mySide, Segment &other ) : bool
IndexOfSide ( Segment side ) : int
IndexOfSideWithAEnd ( Point A ) : int
IndexOfSideWithBEnd ( Point B ) : int

Method Details

BoundingBoxesAreCrossed() public static method

public static BoundingBoxesAreCrossed ( ConvexPolygon p1, ConvexPolygon p2 ) : bool
p1 ConvexPolygon
p2 ConvexPolygon
return bool

CalcProjectionToPixel() public method

public CalcProjectionToPixel ( int i, int j, double quality ) : double
i int
j int
quality double
return double

Contains() public method

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

ConvexPolygon() public method

public ConvexPolygon ( Point points ) : System
points Point
return System

GetArea() public method

public GetArea ( ) : double
return double

HasCrossing() public method

public HasCrossing ( Point crossing, Segment &mySide, Segment &other ) : bool
crossing Point
mySide Segment
other Segment
return bool

IndexOfSide() public method

public IndexOfSide ( Segment side ) : int
side Segment
return int

IndexOfSideWithAEnd() public method

public IndexOfSideWithAEnd ( Point A ) : int
A Point
return int

IndexOfSideWithBEnd() public method

public IndexOfSideWithBEnd ( Point B ) : int
B Point
return int