Struct RectangleF

Namespace
Forma
Assembly
Forma.dll

Lightweight floating-point rectangle used by retained UI geometry queries.

public readonly struct RectangleF : IEquatable<RectangleF>
Implements
Inherited Members

Constructors

RectangleF(float, float, float, float)

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

Parameters

x float
y float
width float
height float

Properties

Bottom

public float Bottom { get; }

Property Value

float

Height

public float Height { get; }

Property Value

float

Left

public float Left { get; }

Property Value

float

Right

public float Right { get; }

Property Value

float

Top

public float Top { get; }

Property Value

float

Width

public float Width { get; }

Property Value

float

X

public float X { get; }

Property Value

float

Y

public float Y { get; }

Property Value

float

Methods

Contains(Vector2)

public bool Contains(Vector2 point)

Parameters

point Vector2

Returns

bool

Equals(RectangleF)

public bool Equals(RectangleF other)

Parameters

other RectangleF

Returns

bool

Equals(object)

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

Intersects(RectangleF)

public bool Intersects(RectangleF other)

Parameters

other RectangleF

Returns

bool

Union(RectangleF, RectangleF)

public static RectangleF Union(RectangleF a, RectangleF b)

Parameters

a RectangleF
b RectangleF

Returns

RectangleF