Public メソッド |
| Rectangle (float x, float y, float width, float height) |
| constructor taking 4 floats
|
| Rectangle (Vector2 position, Vector2 size) |
| constructor taking a two Vector2s
|
| Rectangle (Vector4 v) |
| constructor taking a Vector4
|
Rectangle | Inverse () |
| rectangle inverse
|
void | Inverse (out Rectangle result) |
| rectangle inverse
|
Rectangle | Lerp (Rectangle r, float f) |
| lerp between 2 rectangles
|
void | Lerp (ref Rectangle r, float f, out Rectangle result) |
| lerp between 2 rectangles
|
Vector2 | TransformPoint (Vector2 v) |
| return this * v (X,Y,0,1)
|
void | TransformPoint (ref Vector2 v, out Vector2 result) |
| result = this * v (X,Y,0,1)
|
Vector2 | TransformVector (Vector2 v) |
| return this * v (X,Y,0,0)
|
void | TransformVector (ref Vector2 v, out Vector2 result) |
| result = this * v (X,Y,0,0)
|
Rectangle | Add (Rectangle r) |
| return this + r
|
void | Add (ref Rectangle r, out Rectangle result) |
| result = this + r
|
Rectangle | Subtract (Rectangle r) |
| return this - r
|
void | Subtract (ref Rectangle r, out Rectangle result) |
| result = this - r
|
Rectangle | Multiply (Rectangle r) |
| return this * r
|
void | Multiply (ref Rectangle r, out Rectangle result) |
| result = this * r
|
Rectangle | Multiply (float f) |
| return this * f
|
void | Multiply (float f, out Rectangle result) |
| result = this * f
|
Rectangle | Divide (float f) |
| return this / f
|
void | Divide (float f, out Rectangle result) |
| result = this / f
|
Rectangle | Negate () |
| return -this
|
void | Negate (out Rectangle result) |
| result = -this
|
Vector4 | ToVector4 () |
| return the rectangle as a Vector4
|
void | ToVector4 (out Vector4 result) |
| return the rectangle as a Vector4
|
Matrix4 | ToMatrix4 () |
| convert this rectangle to a Matrix4
|
void | ToMatrix4 (out Matrix4 result) |
| convert this rectangle to a Matrix4
|
bool | IsIdentity () |
| test if this is an identity rectangle
|
bool | IsInfinity () |
| test if any elements of this are Infinity
|
bool | IsNaN () |
| test if any elements of this are NaN
|
bool | Equals (Rectangle r, float epsilon) |
| equality test with an epsilon
|
bool | Equals (Rectangle r) |
| equality test
|
override bool | Equals (Object o) |
| equality test
|
override string | ToString () |
| get the string representation of this rectangle
|
override int | GetHashCode () |
| gets the hash code for this vector
|
Static Public メソッド |
static Rectangle | FromMatrix4 (Matrix4 m) |
| return a rectangle representing a 2D translation/scale matrix
|
static void | FromMatrix4 (ref Matrix4 m, out Rectangle result) |
| return a rectangle representing a 2D translation/scale matrix
|
static Rectangle | Inverse (Rectangle r) |
| static function equivalent to Inverse()
|
static void | Inverse (ref Rectangle r, out Rectangle result) |
| static function equivalent to Inverse(out Rectangle)
|
static Rectangle | Lerp (Rectangle r1, Rectangle r2, float f) |
| static function equivalent to Lerp(Rectangle, float)
|
static void | Lerp (ref Rectangle r1, ref Rectangle r2, float f, out Rectangle result) |
| static function equivalent to Lerp(ref Rectangle, float, out Rectangle)
|
static Vector2 | TransformPoint (Rectangle r, Vector2 v) |
| static function equivalent to TransformPoint(Vector2)
|
static void | TransformPoint (ref Rectangle r, ref Vector2 v, out Vector2 result) |
| static function equivalent to TransformPoint(ref Vector2, out Vector2)
|
static Vector2 | TransformVector (Rectangle r, Vector2 v) |
| static function equivalent to TransformVector(Vector2)
|
static void | TransformVector (ref Rectangle r, ref Vector2 v, out Vector2 result) |
| static function equivalent to TransformVector(ref Vector2, out Vector2)
|
static Rectangle | Add (Rectangle r1, Rectangle r2) |
| static function equivalent to Add(Rectangle)
|
static void | Add (ref Rectangle r1, ref Rectangle r2, out Rectangle result) |
| static function equivalent to Add(ref Rectangle, out Rectangle)
|
static Rectangle | Subtract (Rectangle r1, Rectangle r2) |
| static function equivalent to Subtract(Rectangle)
|
static void | Subtract (ref Rectangle r1, ref Rectangle r2, out Rectangle result) |
| static function equivalent to Subtract(ref Rectangle, out Rectangle)
|
static Rectangle | Multiply (Rectangle r1, Rectangle r2) |
| static function equivalent to Multiply(Rectangle)
|
static void | Multiply (ref Rectangle r1, ref Rectangle r2, out Rectangle result) |
| static function equivalent to Multiply(ref Rectangle, out Rectangle)
|
static Rectangle | Multiply (Rectangle r, float f) |
| static function equivalent to Multiply(float)
|
static void | Multiply (ref Rectangle r, float f, out Rectangle result) |
| static function equivalent to Multiply(float, out Rectangle)
|
static Rectangle | Divide (Rectangle r, float f) |
| static function equivalent to Divide(float)
|
static void | Divide (ref Rectangle r, float f, out Rectangle result) |
| static function equivalent to Divide(float, out Rectangle)
|
static Rectangle | Negate (Rectangle r) |
| static function equivalent to Negate()
|
static void | Negate (ref Rectangle r, out Rectangle result) |
| static function equivalent to Negate(out Rectangle)
|
static bool | operator== (Rectangle r1, Rectangle r2) |
| equality operator
|
static bool | operator!= (Rectangle r1, Rectangle r2) |
| not equals operator
|
static Rectangle | operator+ (Rectangle r1, Rectangle r2) |
| addition operator
|
static Rectangle | operator- (Rectangle r1, Rectangle r2) |
| subtraction operator
|
static Rectangle | operator- (Rectangle r) |
| unary minus operator
|
static Rectangle | operator* (Rectangle r1, Rectangle r2) |
| multiplication operator
|
static Rectangle | operator* (Rectangle r, float f) |
| multiply a rectangle by a scalar float
|
static Rectangle | operator* (float f, Rectangle r) |
| multiply a rectangle by a scalar float
|
static Rectangle | operator/ (Rectangle r, float f) |
| division operator
|
Public 変数 |
float | X |
| X.
|
float | Y |
| Y.
|
float | Width |
| Width.
|
float | Height |
| Height.
|
Static Public 変数 |
static readonly Rectangle | Zero = new Rectangle(0.0f, 0.0f, 0.0f, 0.0f) |
| a rectangle of all zeroes
|
static readonly Rectangle | Identity = new Rectangle(0.0f, 0.0f, 1.0f, 1.0f) |
| identity rectangle
|
プロパティ |
Vector2 | Position [get, set] |
| the base position of the rectangle
|
Vector2 | Size [get, set] |
| the size dimensions of the rectangle
|