Space Engineers
Public Member Functions | Static Public Member Functions | Public Attributes | Properties | List of all members
VRageMath.RectangleF Struct Reference

Structure using the same layout than System.Drawing.RectangleF More...

Inheritance diagram for VRageMath.RectangleF:

Public Member Functions

 RectangleF (Vector2 position, Vector2 size)
 Initializes a new instance of the RectangleF struct. More...
 
 RectangleF (float x, float y, float width, float height)
 Initializes a new instance of the RectangleF struct. More...
 
bool Contains (int x, int y)
 
bool Contains (float x, float y)
 
bool Contains (Vector2 vector2D)
 
bool Contains (Point point)
 
bool Equals (RectangleF other)
 Determines whether the specified System.Object is equal to this instance. More...
 
override bool Equals (object obj)
 
override int GetHashCode ()
 
override string ToString ()
 

Static Public Member Functions

static void Intersect (ref RectangleF value1, ref RectangleF value2, out RectangleF result)
 Creates a Rectangle defining the area where one rectangle overlaps with another rectangle. More...
 
static bool operator== (RectangleF left, RectangleF right)
 Implements the operator ==. More...
 
static bool operator!= (RectangleF left, RectangleF right)
 Implements the operator !=. More...
 

Public Attributes

Vector2 Position
 The Position. More...
 
Vector2 Size
 The Size. More...
 

Properties

float X [get, set]
 Left coordinate. More...
 
float Y [get, set]
 Top coordinate. More...
 
float Width [get, set]
 Width of this rectangle. More...
 
float Height [get, set]
 Height of this rectangle. More...
 

Detailed Description

Structure using the same layout than System.Drawing.RectangleF

Definition at line 11 of file RectangleF.cs.

Constructor & Destructor Documentation

VRageMath.RectangleF.RectangleF ( Vector2  position,
Vector2  size 
)
inline

Initializes a new instance of the RectangleF struct.

Parameters
positionThe x-y position of this rectangle.
sizeThe x-y size of this rectangle.

Definition at line 18 of file RectangleF.cs.

VRageMath.RectangleF.RectangleF ( float  x,
float  y,
float  width,
float  height 
)
inline

Initializes a new instance of the RectangleF struct.

Parameters
xThe x.
yThe y.
widthThe width.
heightThe height.

Definition at line 31 of file RectangleF.cs.

Member Function Documentation

bool VRageMath.RectangleF.Contains ( int  x,
int  y 
)
inline

Definition at line 37 of file RectangleF.cs.

bool VRageMath.RectangleF.Contains ( float  x,
float  y 
)
inline

Definition at line 46 of file RectangleF.cs.

bool VRageMath.RectangleF.Contains ( Vector2  vector2D)
inline

Definition at line 55 of file RectangleF.cs.

bool VRageMath.RectangleF.Contains ( Point  point)
inline

Definition at line 64 of file RectangleF.cs.

bool VRageMath.RectangleF.Equals ( RectangleF  other)
inline

Determines whether the specified System.Object is equal to this instance.

Parameters
objThe System.Object to compare with this instance.
Returns
true if the specified System.Object is equal to this instance; otherwise, false.

Definition at line 127 of file RectangleF.cs.

override bool VRageMath.RectangleF.Equals ( object  obj)
inline

Definition at line 167 of file RectangleF.cs.

override int VRageMath.RectangleF.GetHashCode ( )
inline

Definition at line 175 of file RectangleF.cs.

static void VRageMath.RectangleF.Intersect ( ref RectangleF  value1,
ref RectangleF  value2,
out RectangleF  result 
)
inlinestatic

Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.

Parameters
value1The first Rectangle to compare.
value2The second Rectangle to compare.
result[OutAttribute] The area where the two first parameters overlap.

Definition at line 138 of file RectangleF.cs.

static bool VRageMath.RectangleF.operator!= ( RectangleF  left,
RectangleF  right 
)
inlinestatic

Implements the operator !=.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 208 of file RectangleF.cs.

static bool VRageMath.RectangleF.operator== ( RectangleF  left,
RectangleF  right 
)
inlinestatic

Implements the operator ==.

Parameters
leftThe left.
rightThe right.
Returns
The result of the operator.

Definition at line 195 of file RectangleF.cs.

override string VRageMath.RectangleF.ToString ( )
inline

Definition at line 213 of file RectangleF.cs.

Member Data Documentation

Vector2 VRageMath.RectangleF.Position

The Position.

Definition at line 77 of file RectangleF.cs.

Vector2 VRageMath.RectangleF.Size

The Size.

Definition at line 82 of file RectangleF.cs.

Property Documentation

float VRageMath.RectangleF.Height
getset

Height of this rectangle.

Definition at line 115 of file RectangleF.cs.

float VRageMath.RectangleF.Width
getset

Width of this rectangle.

Definition at line 106 of file RectangleF.cs.

float VRageMath.RectangleF.X
getset

Left coordinate.

Definition at line 88 of file RectangleF.cs.

float VRageMath.RectangleF.Y
getset

Top coordinate.

Definition at line 97 of file RectangleF.cs.


The documentation for this struct was generated from the following file: