C# Class xnapunk.colliders.RectangleCollider

Inheritance: Collider
Datei anzeigen Open project: Gnoll/XNAPunk Class Usage Examples

Public Properties

Property Type Description
Size Vector2

Public Methods

Method Description
GetBottom ( ) : float
GetBottomLeft ( ) : Vector2
GetBottomRight ( ) : Vector2
GetLeft ( ) : float
GetRight ( ) : float
GetTop ( ) : float
GetTopLeft ( ) : Vector2
GetTopRight ( ) : Vector2
IntersectsLine ( Vector2 start, Vector2 end, float lineWidth ) : bool
IntersectsPoint ( Vector2 point ) : bool
RectangleCollider ( Vector2 size, Vector2 offset ) : System
Type ( ) : ColliderType

Method Details

GetBottom() public method

public GetBottom ( ) : float
return float

GetBottomLeft() public method

public GetBottomLeft ( ) : Vector2
return Vector2

GetBottomRight() public method

public GetBottomRight ( ) : Vector2
return Vector2

GetLeft() public method

public GetLeft ( ) : float
return float

GetRight() public method

public GetRight ( ) : float
return float

GetTop() public method

public GetTop ( ) : float
return float

GetTopLeft() public method

public GetTopLeft ( ) : Vector2
return Vector2

GetTopRight() public method

public GetTopRight ( ) : Vector2
return Vector2

IntersectsLine() public method

public IntersectsLine ( Vector2 start, Vector2 end, float lineWidth ) : bool
start Vector2
end Vector2
lineWidth float
return bool

IntersectsPoint() public method

public IntersectsPoint ( Vector2 point ) : bool
point Vector2
return bool

RectangleCollider() public method

public RectangleCollider ( Vector2 size, Vector2 offset ) : System
size Vector2
offset Vector2
return System

Type() public method

public Type ( ) : ColliderType
return ColliderType

Property Details

Size public_oe property

public Vector2 Size
return Vector2