XnaExtensions

Namespace: Murder.Utilities
Assembly: Murder.dll

public static class XnaExtensions

⭐ Methods

ToXnaColor(Vector4)

public Color ToXnaColor(Vector4 color)

Parameters
color Vector4

Returns
Color

Size(Rectangle)

public Point Size(Rectangle this)

Parameters
this Rectangle

Returns
Point

ToPoint(Vector2)

public Point ToPoint(Vector2 vector)

Parameters
vector Vector2

Returns
Point

ToPoint(Vector2)

public Point ToPoint(Vector2 vector)

Parameters
vector Vector2

Returns
Point

ToXnaPoint(Vector2)

public Point ToXnaPoint(Vector2 vector2)

Parameters
vector2 Vector2

Returns
Point

ToRectangle(float, float, float, float)

public Rectangle ToRectangle(float x, float y, float width, float height)

Parameters
x float
y float
width float
height float

Returns
Rectangle

ToCore(Vector2)

public Vector2 ToCore(Vector2 vector)

Parameters
vector Vector2

Returns
Vector2

ToSysVector2(Point)

public Vector2 ToSysVector2(Point point)

Parameters
point Point

Returns
Vector2

ToSysVector2(Vector2)

public Vector2 ToSysVector2(Vector2 vector)

Parameters
vector Vector2

Returns
Vector2

ToVector2(Vector2)

public Vector2 ToVector2(Vector2 v)

Parameters
v Vector2

Returns
Vector2

ToXnaVector2(Vector2)

public Vector2 ToXnaVector2(Vector2 vector)

Parameters
vector Vector2

Returns
Vector2

XnaSize(Rectangle)

public Vector2 XnaSize(Rectangle this)

Parameters
this Rectangle

Returns
Vector2

ToSysVector4(Color)

public Vector4 ToSysVector4(Color color)

Parameters
color Color

Returns
Vector4