C# Class FruityFalls.Geometry.Polygon

Inheritance: CCNode
Mostrar archivo Open project: xamarin/mobile-samples Class Usage Examples

Public Properties

Property Type Description
LastCollisionPoint CCPoint

Public Methods

Method Description
CollideAgainst ( Circle circle ) : bool
CreateRectangle ( float width, float height ) : Polygon
GetNormalClosestTo ( CCPoint point, float &distance ) : CCPoint
IsPointInside ( float x, float y ) : bool
Polygon ( ) : System
VectorFrom ( float x, float y, CCPoint vertices, int &pointIndexBefore ) : CCPoint

Private Methods

Method Description
ReactToPointsSet ( ) : void
UpdateAbsolutePoints ( ) : void

Method Details

CollideAgainst() public method

public CollideAgainst ( Circle circle ) : bool
circle Circle
return bool

CreateRectangle() public static method

public static CreateRectangle ( float width, float height ) : Polygon
width float
height float
return Polygon

GetNormalClosestTo() public method

public GetNormalClosestTo ( CCPoint point, float &distance ) : CCPoint
point CCPoint
distance float
return CCPoint

IsPointInside() public method

public IsPointInside ( float x, float y ) : bool
x float
y float
return bool

Polygon() public method

public Polygon ( ) : System
return System

VectorFrom() public static method

public static VectorFrom ( float x, float y, CCPoint vertices, int &pointIndexBefore ) : CCPoint
x float
y float
vertices CCPoint
pointIndexBefore int
return CCPoint

Property Details

LastCollisionPoint public_oe property

public CCPoint LastCollisionPoint
return CCPoint