Inheritance
System.Object
Offset
public class Offset : OffsetBase, IEquatable<OffsetBase>, IEquatable<Offset>
Constructors
Declaration
public Offset(float dx, float dy)
Parameters
Type |
Name |
Description |
System.Single |
dx |
|
System.Single |
dy |
|
Fields
Declaration
public static readonly Offset infinite
Field Value
Declaration
public static readonly Offset zero
Field Value
Properties
Declaration
public float distance { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
public float distanceSquared { get; }
Property Value
Type |
Description |
System.Single |
|
Declaration
Property Value
Type |
Description |
System.Single |
|
Declaration
Property Value
Type |
Description |
System.Single |
|
Methods
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
Declaration
public bool Equals(Offset other)
Parameters
Type |
Name |
Description |
Offset |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
Declaration
public static Offset lerp(Offset a, Offset b, float t)
Parameters
Returns
Declaration
public Offset scale(float scaleX, float? scaleY = default(float? ))
Parameters
Type |
Name |
Description |
System.Single |
scaleX |
|
System.Nullable<System.Single> |
scaleY |
|
Returns
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
Declaration
public Offset translate(float translateX, float translateY)
Parameters
Type |
Name |
Description |
System.Single |
translateX |
|
System.Single |
translateY |
|
Returns
Operators
Declaration
public static Offset operator +(Offset a, Offset b)
Parameters
Returns
Declaration
public static Rect operator &(Offset a, Size other)
Parameters
Returns
Declaration
public static Offset operator /(Offset a, float operand)
Parameters
Type |
Name |
Description |
Offset |
a |
|
System.Single |
operand |
|
Returns
Declaration
public static bool operator ==(Offset left, Offset right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(Offset left, Offset right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Offset operator *(Offset a, float operand)
Parameters
Type |
Name |
Description |
Offset |
a |
|
System.Single |
operand |
|
Returns
Declaration
public static Offset operator -(Offset a, Offset b)
Parameters
Returns
Declaration
public static Offset operator -(Offset a)
Parameters
Type |
Name |
Description |
Offset |
a |
|
Returns
Extension Methods