Inheritance
System.Object
FractionalOffset
public class FractionalOffset : Alignment, IEquatable<Alignment>
Constructors
Declaration
public FractionalOffset(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Fields
Declaration
public static readonly FractionalOffset bottomCenter
Field Value
Declaration
public static readonly FractionalOffset bottomLeft
Field Value
Declaration
public static readonly FractionalOffset bottomRight
Field Value
Declaration
public static readonly FractionalOffset center
Field Value
Declaration
public static readonly FractionalOffset centerLeft
Field Value
Declaration
public static readonly FractionalOffset centerRight
Field Value
Declaration
public static readonly FractionalOffset topCenter
Field Value
Declaration
public static readonly FractionalOffset topLeft
Field Value
Declaration
public static readonly FractionalOffset topRight
Field Value
Properties
Declaration
Property Value
Type |
Description |
System.Single |
|
Declaration
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
public static FractionalOffset fromOffsetAndRect(Offset offset, Rect rect)
Parameters
Returns
Declaration
public static FractionalOffset fromOffsetAndSize(Offset offset, Size size)
Parameters
Returns
Declaration
public static FractionalOffset lerp(FractionalOffset a, FractionalOffset b, float t)
Parameters
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Operators
Declaration
public static Alignment operator +(FractionalOffset a, Alignment b)
Parameters
Returns
Declaration
public static FractionalOffset operator /(FractionalOffset a, float b)
Parameters
Returns
Declaration
public static FractionalOffset operator %(FractionalOffset a, float b)
Parameters
Returns
Declaration
public static FractionalOffset operator *(FractionalOffset a, float b)
Parameters
Returns
Declaration
public static Alignment operator -(FractionalOffset a, Alignment b)
Parameters
Returns
Declaration
public static FractionalOffset operator -(FractionalOffset a)
Parameters
Returns