Inheritance
System.Object
RRect
public class RRect : IEquatable<RRect>
Fields
Declaration
public readonly Radius blRadius
Field Value
Declaration
public readonly float bottom
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly Radius brRadius
Field Value
Declaration
public readonly float left
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly float right
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly Radius tlRadius
Field Value
Declaration
public readonly float top
Field Value
Type |
Description |
System.Single |
|
Declaration
public readonly Radius trRadius
Field Value
Declaration
public static readonly RRect zero
Field Value
Properties
Declaration
public float blRadiusX { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float blRadiusY { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float brRadiusX { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float brRadiusY { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public Offset center { get; }
Property Value
Declaration
public float height { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public bool isCircle { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isEllipse { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isFinite { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isInfinite { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isRect { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public bool isStadium { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public float longestSide { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public Rect middleRect { get; }
Property Value
Declaration
public Rect outerRect { get; }
Property Value
Declaration
public Rect safeInnerRect { get; }
Property Value
Declaration
public float shortestSide { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public Rect tallMiddleRect { get; }
Property Value
Declaration
public float tlRadiusX { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float tlRadiusY { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float trRadiusX { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float trRadiusY { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public Rect wideMiddleRect { get; }
Property Value
Declaration
public float width { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
public bool contains(Offset point)
Parameters
Type |
Name |
Description |
Offset |
point |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public bool contains(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public RRect deflate(float delta)
Parameters
Type |
Name |
Description |
System.Single |
delta |
|
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
Declaration
public bool Equals(RRect other)
Parameters
Type |
Name |
Description |
RRect |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static RRect fromLTRBAndCorners(float left, float top, float right, float bottom, float? topLeft = default(float? ), float? topRight = default(float? ), float? bottomRight = default(float? ), float? bottomLeft = default(float? ))
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
System.Nullable<System.Single> |
topLeft |
|
System.Nullable<System.Single> |
topRight |
|
System.Nullable<System.Single> |
bottomRight |
|
System.Nullable<System.Single> |
bottomLeft |
|
Returns
Declaration
public static RRect fromLTRBAndCorners(float left, float top, float right, float bottom, Radius topLeft = null, Radius topRight = null, Radius bottomRight = null, Radius bottomLeft = null)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
Radius |
topLeft |
|
Radius |
topRight |
|
Radius |
bottomRight |
|
Radius |
bottomLeft |
|
Returns
Declaration
public static RRect fromLTRBR(float left, float top, float right, float bottom, float radius)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
System.Single |
radius |
|
Returns
Declaration
public static RRect fromLTRBR(float left, float top, float right, float bottom, Radius radius)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
Radius |
radius |
|
Returns
Declaration
public static RRect fromLTRBXY(float left, float top, float right, float bottom, float radiusX, float radiusY)
Parameters
Type |
Name |
Description |
System.Single |
left |
|
System.Single |
top |
|
System.Single |
right |
|
System.Single |
bottom |
|
System.Single |
radiusX |
|
System.Single |
radiusY |
|
Returns
Declaration
public static RRect fromRect(Rect rect)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
Returns
Declaration
public static RRect fromRectAndCorners(Rect rect, float? topLeft = default(float? ), float? topRight = default(float? ), float? bottomRight = default(float? ), float? bottomLeft = default(float? ))
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Nullable<System.Single> |
topLeft |
|
System.Nullable<System.Single> |
topRight |
|
System.Nullable<System.Single> |
bottomRight |
|
System.Nullable<System.Single> |
bottomLeft |
|
Returns
Declaration
public static RRect fromRectAndCorners(Rect rect, Radius topLeft = null, Radius topRight = null, Radius bottomRight = null, Radius bottomLeft = null)
Parameters
Returns
Declaration
public static RRect fromRectAndRadius(Rect rect, float radius)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Single |
radius |
|
Returns
Declaration
public static RRect fromRectAndRadius(Rect rect, Radius radius)
Parameters
Returns
Declaration
public static RRect fromRectXY(Rect rect, float radiusX, float radiusY)
Parameters
Type |
Name |
Description |
Rect |
rect |
|
System.Single |
radiusX |
|
System.Single |
radiusY |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public RRect inflate(float delta)
Parameters
Type |
Name |
Description |
System.Single |
delta |
|
Returns
Declaration
public static RRect lerp(RRect a, RRect b, float t)
Parameters
Type |
Name |
Description |
RRect |
a |
|
RRect |
b |
|
System.Single |
t |
|
Returns
Declaration
public RRect shift(Offset offset)
Parameters
Type |
Name |
Description |
Offset |
offset |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static bool operator ==(RRect a, RRect b)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(RRect a, RRect b)
Parameters
Returns
Type |
Description |
System.Boolean |
|