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
Properties
Bottom
public float Bottom { get; }
Property Value
Height
public float Height { get; }
Property Value
Left
public float Left { get; }
Property Value
Right
public float Right { get; }
Property Value
Top
public float Top { get; }
Property Value
Width
public float Width { get; }
Property Value
X
public float X { get; }
Property Value
Y
public float Y { get; }
Property Value
Methods
Contains(Vector2)
public bool Contains(Vector2 point)
Parameters
pointVector2
Returns
Equals(RectangleF)
public bool Equals(RectangleF other)
Parameters
otherRectangleF
Returns
Equals(object)
public override bool Equals(object obj)
Parameters
objobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
Intersects(RectangleF)
public bool Intersects(RectangleF other)
Parameters
otherRectangleF
Returns
Union(RectangleF, RectangleF)
public static RectangleF Union(RectangleF a, RectangleF b)
Parameters
aRectangleFbRectangleF