Inheritance
System.Object
Velocity
public class Velocity : IEquatable<Velocity>
Constructors
Declaration
public Velocity(Offset pixelsPerSecond = null)
Parameters
Type |
Name |
Description |
Offset |
pixelsPerSecond |
|
Fields
Declaration
public readonly Offset pixelsPerSecond
Field Value
Declaration
public static readonly Velocity zero
Field Value
Methods
Declaration
public Velocity clampMagnitude(float minValue, float maxValue)
Parameters
Type |
Name |
Description |
System.Single |
minValue |
|
System.Single |
maxValue |
|
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(Velocity other)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
Operators
Declaration
public static Velocity operator +(Velocity a, Velocity b)
Parameters
Returns
Declaration
public static bool operator ==(Velocity left, Velocity right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static bool operator !=(Velocity left, Velocity right)
Parameters
Returns
Type |
Description |
System.Boolean |
|
Declaration
public static Velocity operator -(Velocity a, Velocity b)
Parameters
Returns
Declaration
public static Velocity operator -(Velocity a)
Parameters
Returns