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 Apr 16, 2022 · 53 revisions

IndexNamespace Index

RectangleF Struct

public struct RectangleF: IEquatable<RectangleF>

Structure using the same layout than System.Drawing.RectangleF

Namespace: VRageMath
Assembly: VRage.Math.dll

Implements:

Fields

Vector2 Position

The Position.

Vector2 Size

The Size.

Properties

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.

Constructors

RectangleF(Vector2, Vector2)

RectangleF(float, float, float, float)

Methods

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()

Clone this wiki locally