public class Size : OffsetBase, IEquatable<OffsetBase>, IEquatable<Size>
Constructors
Declaration
public Size(float width, float height)
Parameters
Fields
Declaration
public static readonly Size infinite
Field Value
Declaration
public static readonly Size zero
Field Value
Properties
Declaration
public Size flipped { get; }
Property Value
Declaration
public float height { get; }
Property Value
Declaration
public bool isEmpty { get; }
Property Value
Declaration
public float longestSide { get; }
Property Value
Declaration
public float shortestSide { get; }
Property Value
Declaration
public float width { get; }
Property Value
Methods
Declaration
public Offset bottomCenter(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public Offset bottomLeft(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public Offset bottomRight(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public Offset center(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public Offset centerLeft(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public Offset centerRight(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public bool contains(Offset offset)
Parameters
Type |
Name |
Description |
Offset |
offset |
|
Returns
Declaration
public static Size copy(Size source)
Parameters
Type |
Name |
Description |
Size |
source |
|
Returns
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
Object |
obj |
|
Returns
Overrides
Declaration
public bool Equals(Size other)
Parameters
Type |
Name |
Description |
Size |
other |
|
Returns
Declaration
public static Size fromHeight(float height)
Parameters
Type |
Name |
Description |
Single |
height |
|
Returns
Declaration
public static Size fromRadius(float radius)
Parameters
Type |
Name |
Description |
Single |
radius |
|
Returns
Declaration
public static Size fromWidth(float width)
Parameters
Type |
Name |
Description |
Single |
width |
|
Returns
Declaration
public override int GetHashCode()
Returns
Overrides
Declaration
public static Size lerp(Size a, Size b, float t)
Parameters
Returns
Declaration
public static Size square(float dimension)
Parameters
Type |
Name |
Description |
Single |
dimension |
|
Returns
Declaration
public Offset topCenter(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public Offset topLeft(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public Offset topRight(Offset origin)
Parameters
Type |
Name |
Description |
Offset |
origin |
|
Returns
Declaration
public override string ToString()
Returns
Overrides
Operators
Declaration
public static Size operator +(Size a, Offset b)
Parameters
Returns
Declaration
public static Size operator /(Size a, float operand)
Parameters
Returns
Declaration
public static bool operator ==(Size left, Size right)
Parameters
Type |
Name |
Description |
Size |
left |
|
Size |
right |
|
Returns
Declaration
public static bool operator !=(Size left, Size right)
Parameters
Type |
Name |
Description |
Size |
left |
|
Size |
right |
|
Returns
Declaration
public static Size operator *(Size a, float operand)
Parameters
Returns
Declaration
public static Size operator -(Size a, Offset b)
Parameters
Returns
Declaration
public static Offset operator -(Size a, Size b)
Parameters
Returns