This repository was archived by the owner on Dec 13, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 123
VRageMath.RectangleF
Morten Aune Lyrstad edited this page Apr 16, 2022
·
54 revisions
← Index ← Namespace Index
public struct RectangleF: IEquatable<RectangleF>Structure using the same layout than System.Drawing.RectangleF
Namespace: VRageMath
Assembly: VRage.Math.dll
Implements:
| Member | Description |
|---|---|
| Vector2 Position | The Position. |
| Vector2 Size | The Size. |
| Member | Description |
|---|---|
| float Bottom { get; } | |
| Vector2 Center { get; } | |
| float Height { get; set; } | Height of this rectangle. |
| float Right { get; } | |
| float Width { get; set; } | Width of this rectangle. |
| float X { get; set; } | Left coordinate. |
| float Y { get; set; } | Top coordinate. |
| Member | Description |
|---|---|
| RectangleF(Vector2, Vector2) | |
| RectangleF(float, float, float, float) |
| Member | Description |
|---|---|
| static bool Intersect(ref RectangleF, ref RectangleF, out RectangleF) | Creates a Rectangle defining the area where one rectangle overlaps with another rectangle. |
| static RectangleF Min(RectangleF?, RectangleF?) | |
| bool Contains(int, int) | |
| bool Contains(float, float) | |
| bool Contains(Vector2) | |
| bool Contains(Point) | |
| bool Equals(RectangleF) | Equals to other rectangle |
| bool Equals(object) | |
| int GetHashCode() | |
| string ToString() |
Do you have questions, comments, suggestions for improvements? Is there something I can do better? Did I make a mistake? Please add an issue here, and prefix your issue title with Wiki. Thank you, your help will be very appreciated!