C# Class TiaraFramework.Component.Extend.EXT

ファイルを表示 Open project: TiaraGames/TiaraFramework

Public Methods

Method Description
Blend ( Microsoft.Xna.Framework.Graphics.Texture2D ttBack, Microsoft.Xna.Framework.Graphics.Texture2D ttFore, Vector2 Offset, Microsoft.Xna.Framework.Game game ) : Microsoft.Xna.Framework.Graphics.Texture2D
Divide ( this c, float divisor ) : Color
Expand ( this rect, Point point ) : Rectangle
GetAngle ( this v ) : float
GetAngle ( this v, Vector2 vec ) : float
GetNormalize ( this v ) : Vector2
GetSize ( this rect ) : Vector2
Minus ( this c, Color color ) : Color
Minus ( this c, int A, int R, int G, int B ) : Color
Minus ( this point, Point subPoint ) : Point
Move ( this rect, Vector2 vecMove ) : Rectangle
Move ( this rect, int X, int Y ) : Rectangle
Multiply ( this c, float factor ) : Color
Multiply ( this rect, float multiple, bool multiLocation ) : Rectangle
Plus ( this c, Color color ) : Color
Plus ( this c, int A, int R, int G, int B ) : Color
Plus ( this point, Point addPoint ) : Point
Rotate ( this vec, float omega ) : Vector2
Shrink ( this rect, Point point ) : Rectangle
ToPoint ( this vec ) : Point
ToVector2 ( this pt ) : Vector2
Zoom ( this rect, int value ) : Rectangle

Method Details

Blend() public static method

public static Blend ( Microsoft.Xna.Framework.Graphics.Texture2D ttBack, Microsoft.Xna.Framework.Graphics.Texture2D ttFore, Vector2 Offset, Microsoft.Xna.Framework.Game game ) : Microsoft.Xna.Framework.Graphics.Texture2D
ttBack Microsoft.Xna.Framework.Graphics.Texture2D
ttFore Microsoft.Xna.Framework.Graphics.Texture2D
Offset Vector2
game Microsoft.Xna.Framework.Game
return Microsoft.Xna.Framework.Graphics.Texture2D

Divide() public static method

public static Divide ( this c, float divisor ) : Color
c this
divisor float
return Color

Expand() public static method

public static Expand ( this rect, Point point ) : Rectangle
rect this
point Point
return Microsoft.Xna.Framework.Rectangle

GetAngle() public static method

public static GetAngle ( this v ) : float
v this
return float

GetAngle() public static method

public static GetAngle ( this v, Vector2 vec ) : float
v this
vec Vector2
return float

GetNormalize() public static method

public static GetNormalize ( this v ) : Vector2
v this
return Vector2

GetSize() public static method

public static GetSize ( this rect ) : Vector2
rect this
return Vector2

Minus() public static method

public static Minus ( this c, Color color ) : Color
c this
color Color
return Color

Minus() public static method

public static Minus ( this c, int A, int R, int G, int B ) : Color
c this
A int
R int
G int
B int
return Color

Minus() public static method

public static Minus ( this point, Point subPoint ) : Point
point this
subPoint Point
return Point

Move() public static method

public static Move ( this rect, Vector2 vecMove ) : Rectangle
rect this
vecMove Vector2
return Microsoft.Xna.Framework.Rectangle

Move() public static method

public static Move ( this rect, int X, int Y ) : Rectangle
rect this
X int
Y int
return Microsoft.Xna.Framework.Rectangle

Multiply() public static method

public static Multiply ( this c, float factor ) : Color
c this
factor float
return Color

Multiply() public static method

public static Multiply ( this rect, float multiple, bool multiLocation ) : Rectangle
rect this
multiple float
multiLocation bool
return Microsoft.Xna.Framework.Rectangle

Plus() public static method

public static Plus ( this c, Color color ) : Color
c this
color Color
return Color

Plus() public static method

public static Plus ( this c, int A, int R, int G, int B ) : Color
c this
A int
R int
G int
B int
return Color

Plus() public static method

public static Plus ( this point, Point addPoint ) : Point
point this
addPoint Point
return Point

Rotate() public static method

public static Rotate ( this vec, float omega ) : Vector2
vec this
omega float
return Vector2

Shrink() public static method

public static Shrink ( this rect, Point point ) : Rectangle
rect this
point Point
return Microsoft.Xna.Framework.Rectangle

ToPoint() public static method

public static ToPoint ( this vec ) : Point
vec this
return Point

ToVector2() public static method

public static ToVector2 ( this pt ) : Vector2
pt this
return Vector2

Zoom() public static method

public static Zoom ( this rect, int value ) : Rectangle
rect this
value int
return Microsoft.Xna.Framework.Rectangle