Check if we are touching inside a rectangle More...
Public Member Functions | |
TouchRectCollider (SharpKmyMath.Vector2 position, SharpKmyMath.Vector2 length) | |
TouchRectCollider (Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Vector2 length) | |
TouchRectCollider (SharpKmyMath.Vector2 position, SharpKmyMath.Vector2 length, int result) | |
TouchRectCollider (Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Vector2 length, int result) | |
override int | IsTouching (SharpKmyMath.Vector2 touchPos) |
override int | IsTouchingCenter (SharpKmyMath.Vector2 touchPos, float centerLength) |
override System.Tuple< int, EdgePosition > | IsTouchingEdge (SharpKmyMath.Vector2 touchPos, float edgeLength) |
override bool | IsOutOfRange (SharpKmyMath.Vector2 touchPos) |
override int | CollideRectangele (SharpKmyMath.Rectangle rectangle) |
override bool | IsOutOfRange (SharpKmyMath.Rectangle rectangle) |
override int | CoverRectangle (SharpKmyMath.Rectangle rectangle) |
override void | Draw (Microsoft.Xna.Framework.Color color) |
void | SetPositinAndLength (SharpKmyMath.Vector2 position, SharpKmyMath.Vector2 length) |
void | SetPositinAndLength (Microsoft.Xna.Framework.Vector2 position, Microsoft.Xna.Framework.Vector2 length) |
abstract int | IsTouching (SharpKmyMath.Vector2 touchPos) |
abstract int | IsTouchingCenter (SharpKmyMath.Vector2 touchPos, float centerLength) |
abstract System.Tuple< int, EdgePosition > | IsTouchingEdge (SharpKmyMath.Vector2 touchPos, float edgeLength) |
abstract bool | IsOutOfRange (SharpKmyMath.Vector2 touchPos) |
abstract int | CollideRectangele (SharpKmyMath.Rectangle rectangle) |
abstract bool | IsOutOfRange (SharpKmyMath.Rectangle rectangle) |
abstract int | CoverRectangle (SharpKmyMath.Rectangle rectangle) |
abstract void | Draw (Microsoft.Xna.Framework.Color color) |
Properties | |
SharpKmyMath.Vector2 | Position [get, set] |
SharpKmyMath.Vector2 | Length [get, set] |
Microsoft.Xna.Framework.Rectangle | Rectangle [get, set] |
Additional Inherited Members | |
Public Types inherited from Yukar.Engine.TouchCollider | |
enum | EdgePosition { None = -1 , Left , Right , Top , Bottom , LeftTop , LeftBottom , RightTop , RightBottom } |
Static Public Attributes inherited from Yukar.Engine.TouchCollider | |
const int | RESULT_OUT_OF_RANGE = -2 |
Protected Member Functions inherited from Yukar.Engine.TouchCollider | |
TouchCollider () | |
TouchCollider (int result) | |
Protected Attributes inherited from Yukar.Engine.TouchCollider | |
int | result = -1 |
Static Protected Attributes inherited from Yukar.Engine.TouchCollider | |
static readonly int | Alpha = 100 |
static readonly float | FloatAlpha = Alpha / 255.0f |
Check if we are touching inside a rectangle
Yukar.Engine.TouchRectCollider.TouchRectCollider | ( | SharpKmyMath.Vector2 | position, |
SharpKmyMath.Vector2 | length | ||
) |
Yukar.Engine.TouchRectCollider.TouchRectCollider | ( | Microsoft.Xna.Framework.Vector2 | position, |
Microsoft.Xna.Framework.Vector2 | length | ||
) |
Yukar.Engine.TouchRectCollider.TouchRectCollider | ( | SharpKmyMath.Vector2 | position, |
SharpKmyMath.Vector2 | length, | ||
int | result | ||
) |
Yukar.Engine.TouchRectCollider.TouchRectCollider | ( | Microsoft.Xna.Framework.Vector2 | position, |
Microsoft.Xna.Framework.Vector2 | length, | ||
int | result | ||
) |
|
virtual |
Implements Yukar.Engine.TouchCollider.
|
virtual |
Implements Yukar.Engine.TouchCollider.
|
virtual |
Implements Yukar.Engine.TouchCollider.
|
virtual |
Implements Yukar.Engine.TouchCollider.
|
virtual |
Implements Yukar.Engine.TouchCollider.
|
virtual |
Implements Yukar.Engine.TouchCollider.
|
virtual |
Implements Yukar.Engine.TouchCollider.
|
virtual |
Implements Yukar.Engine.TouchCollider.
void Yukar.Engine.TouchRectCollider.SetPositinAndLength | ( | Microsoft.Xna.Framework.Vector2 | position, |
Microsoft.Xna.Framework.Vector2 | length | ||
) |
void Yukar.Engine.TouchRectCollider.SetPositinAndLength | ( | SharpKmyMath.Vector2 | position, |
SharpKmyMath.Vector2 | length | ||
) |
|
getset |
|
getset |
|
getset |