Inheritance
System.Object
Size
public class Size : OffsetBase, IEquatable<OffsetBase>, IEquatable<Size>
Constructors
Declaration
public Size(float width, float height)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
System.Single |
height |
|
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
Type |
Description |
System.Single |
|
Declaration
public bool isEmpty { get; }
Property Value
Type |
Description |
System.Boolean |
|
Declaration
public float longestSide { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float shortestSide { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float width { get; }
Property Value
Type |
Description |
System.Single |
|
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
Type |
Description |
System.Boolean |
|
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 |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public bool Equals(Size other)
Parameters
Type |
Name |
Description |
Size |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Size fromHeight(float height)
Parameters
Type |
Name |
Description |
System.Single |
height |
|
Returns
Declaration
public static Size fromRadius(float radius)
Parameters
Type |
Name |
Description |
System.Single |
radius |
|
Returns
Declaration
public static Size fromWidth(float width)
Parameters
Type |
Name |
Description |
System.Single |
width |
|
Returns
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
public static Size lerp(Size a, Size b, float t)
Parameters
Type |
Name |
Description |
Size |
a |
|
Size |
b |
|
System.Single |
t |
|
Returns
Declaration
public static Size square(float dimension)
Parameters
Type |
Name |
Description |
System.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
Type |
Description |
System.String |
|
Overrides
Operators
Declaration
public static Size operator +(Size a, Offset b)
Parameters
Returns
Declaration
public static Size operator /(Size a, float operand)
Parameters
Type |
Name |
Description |
Size |
a |
|
System.Single |
operand |
|
Returns
Declaration
public static bool operator ==(Size left, Size right)
Parameters
Type |
Name |
Description |
Size |
left |
|
Size |
right |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(Size left, Size right)
Parameters
Type |
Name |
Description |
Size |
left |
|
Size |
right |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Size operator *(Size a, float operand)
Parameters
Type |
Name |
Description |
Size |
a |
|
System.Single |
operand |
|
Returns
Declaration
public static Size operator -(Size a, Offset b)
Parameters
Returns
Declaration
public static Offset operator -(Size a, Size b)
Parameters
Returns