Property | Type | Description | |
---|---|---|---|
CollisionRectangle | |||
Origin | Vector2 | ||
Rotation | float |
Method | Description | |
---|---|---|
ChangePosition ( int theXPositionAdjustment, int theYPositionAdjustment ) : void |
Used for changing the X and Y position of the RotatedRectangle
|
|
Intersects ( |
This intersects method can be used to check a standard XNA framework Rectangle object and see if it collides with a Rotated Rectangle object
|
|
Intersects ( |
Check to see if two Rotated Rectangls have collided
|
|
LowerLeftCorner ( ) : Vector2 | ||
LowerRightCorner ( ) : Vector2 | ||
RotatedRectangle ( |
||
RotatedRectangle ( int X, int Y, int Width, int Height ) : System | ||
UpperLeftCorner ( ) : Vector2 | ||
UpperRightCorner ( ) : Vector2 |
Method | Description | |
---|---|---|
GenerateScalar ( Vector2 theRectangleCorner, Vector2 theAxis ) : int |
Generates a scalar value that can be used to compare where corners of a rectangle have been projected onto a particular axis.
|
|
IsAxisCollision ( |
Determines if a collision has occurred on an Axis of one of the planes parallel to the Rectangle
|
|
RotatePoint ( Vector2 thePoint, Vector2 theOrigin, float theRotation ) : Vector2 |
Rotate a point from a given location and adjust using the Origin we are rotating around
|
public ChangePosition ( int theXPositionAdjustment, int theYPositionAdjustment ) : void | ||
theXPositionAdjustment | int | |
theYPositionAdjustment | int | |
return | void |
public Intersects ( |
||
theRectangle | ||
return | bool |
public Intersects ( |
||
theRectangle | ||
return | bool |
public RotatedRectangle ( |
||
theRectangle | ||
theInitialRotation | float | |
return | System |
public RotatedRectangle ( int X, int Y, int Width, int Height ) : System | ||
X | int | |
Y | int | |
Width | int | |
Height | int | |
return | System |
public Rectangle,Microsoft.Xna.Framework CollisionRectangle | ||
return |