Skip to content
This repository was archived by the owner on Dec 13, 2025. It is now read-only.

VRageMath.RectangleF

Malware edited this page Dec 13, 2025 · 54 revisions

DEPRECATION NOTICE

This API documentation is out of date and no longer maintained.

Please visit the new documentation at: https://malforge.github.io/spaceengineers/pbapi

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 position, Vector2 size)

RectangleF(float x, float y, float width, float height)

Methods

static bool Intersect(ref RectangleF value1, ref RectangleF value2, out RectangleF result)

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

static RectangleF Min(RectangleF? rectangle, RectangleF? scissors)

bool Contains(int x, int y)

bool Contains(float x, float y)

bool Contains(Vector2 vector2D)

bool Contains(Point point)

bool Equals(RectangleF other)

Equals to other rectangle

bool Equals(object obj)

int GetHashCode()

string ToString()

Clone this wiki locally