Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

VRageMath.RectangleF

Morten Aune Lyrstad edited this page Feb 3, 2022 · 53 revisions

IndexNamespace Index

RectangleF Struct

public struct RectangleF: IEquatable<VRageMath.RectangleF>

Structure using the same layout than System.Drawing.RectangleF

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Member Description
Position The Position.
Size The Size.

Properties

Member Description
X { get; set; } Left coordinate.
Y { get; set; } Top coordinate.
Width { get; set; } Width of this rectangle.
Height { get; set; } Height of this rectangle.
Right { get; }
Bottom { get; }
Center { get; }

Constructors

Member Description
RectangleF(Vector2, Vector2)
RectangleF(float, float, float, float)

Methods

Member Description
Contains(int, int)
Contains(float, float)
Contains(Vector2)
Contains(Point)
Equals(RectangleF) Equals to other rectangle
Intersect(ref RectangleF, ref RectangleF, out RectangleF) Creates a Rectangle defining the area where one rectangle overlaps with another rectangle.
Equals(object)
GetHashCode()
ToString()
Min(RectangleF?, RectangleF?)
Clone this wiki locally