A Networked fusion type for degrees. This can be used with the NetworkedAttribute, in RPCs, or in NetworkInput structs.
More...
Inherits INetworkStruct, and IEquatable< Angle >.
|
| static Angle | Clamp (Angle value, Angle min, Angle max) |
| | Returns a the value, clamped to the min-max range. More...
|
| |
| static Angle | Lerp (Angle a, Angle b, float t) |
| | Lerps between two angle values. More...
|
| |
| static Angle | Max (Angle a, Angle b) |
| | Returns the larger of two supplied angles. More...
|
| |
| static Angle | Min (Angle a, Angle b) |
| | Returns the smaller of two supplied angles. More...
|
| |
| static implicit | operator Angle (double value) |
| | Converts double to Angle. More...
|
| |
| static implicit | operator Angle (float value) |
| | Converts float to Angle. More...
|
| |
| static implicit | operator Angle (int value) |
| | Converts int to Angle. More...
|
| |
| static | operator double (Angle value) |
| | Converts Angle to double. More...
|
| |
| static | operator float (Angle value) |
| | Converts Angle to float. More...
|
| |
| static bool | operator!= (Angle a, Angle b) |
| | Inequality operator for Angle struct. More...
|
| |
| static Angle | operator+ (Angle a, Angle b) |
| | Addition operator for Angle struct. More...
|
| |
| static Angle | operator- (Angle a, Angle b) |
| | Subtraction operator for Angle struct. More...
|
| |
| static bool | operator< (Angle a, Angle b) |
| | Less than operator for Angle struct. More...
|
| |
| static bool | operator<= (Angle a, Angle b) |
| | Less than or equal to operator for Angle struct. More...
|
| |
| static bool | operator== (Angle a, Angle b) |
| | Equality operator for Angle struct. More...
|
| |
| static bool | operator> (Angle a, Angle b) |
| | Greater than operator for Angle struct. More...
|
| |
| static bool | operator>= (Angle a, Angle b) |
| | Greater than or equal to operator for Angle struct. More...
|
| |
|
| const int | SIZE = 4 |
| | Size of this struct in bytes. More...
|
| |
A Networked fusion type for degrees. This can be used with the NetworkedAttribute, in RPCs, or in NetworkInput structs.
◆ Clamp() [1/2]
Clamps the current value to the supplied min-max range.
◆ Clamp() [2/2]
Returns a the value, clamped to the min-max range.
◆ Equals() [1/2]
| bool Equals |
( |
Angle |
other | ) |
|
Checks equality with another Angle.
- Parameters
-
- Returns
- Equality result.
◆ Equals() [2/2]
| override bool Equals |
( |
object |
obj | ) |
|
Checks equality with an object.
- Parameters
-
- Returns
- Equality result.
◆ GetHashCode()
| override int GetHashCode |
( |
| ) |
|
Gets the hash code.
- Returns
- Hash code.
◆ Lerp()
Lerps between two angle values.
◆ Max()
Returns the larger of two supplied angles.
◆ Min()
Returns the smaller of two supplied angles.
◆ operator Angle() [1/3]
| static implicit operator Angle |
( |
double |
value | ) |
|
|
static |
Converts double to Angle.
- Parameters
-
- Returns
- Angle instance with the value of the double.
◆ operator Angle() [2/3]
| static implicit operator Angle |
( |
float |
value | ) |
|
|
static |
Converts float to Angle.
- Parameters
-
- Returns
- Angle instance with the value of the float.
◆ operator Angle() [3/3]
| static implicit operator Angle |
( |
int |
value | ) |
|
|
static |
Converts int to Angle.
- Parameters
-
- Returns
- Angle instance with the value of the integer.
◆ operator double()
| static operator double |
( |
Angle |
value | ) |
|
|
explicitstatic |
Converts Angle to double.
- Parameters
-
- Returns
- Double representation of the Angle.
◆ operator float()
| static operator float |
( |
Angle |
value | ) |
|
|
explicitstatic |
Converts Angle to float.
- Parameters
-
- Returns
- Float representation of the Angle.
◆ operator!=()
Inequality operator for Angle struct.
- Parameters
-
- Returns
- True if the value of the first Angle instance is not equal to the value of the second Angle instance, otherwise false.
◆ operator+()
Addition operator for Angle struct.
- Parameters
-
- Returns
- A new Angle instance that is the sum of the first and second Angle instances, wrapped around at 360 degrees if necessary.
◆ operator-()
Subtraction operator for Angle struct.
- Parameters
-
- Returns
- A new Angle instance that is the difference of the first and second Angle instances, wrapped around at 360 degrees if necessary.
◆ operator<()
Less than operator for Angle struct.
- Parameters
-
- Returns
- True if the value of the first Angle instance is less than the value of the second Angle instance, otherwise false.
◆ operator<=()
Less than or equal to operator for Angle struct.
- Parameters
-
- Returns
- True if the value of the first Angle instance is less than or equal to the value of the second Angle instance, otherwise false.
◆ operator==()
Equality operator for Angle struct.
- Parameters
-
- Returns
- True if the value of the first Angle instance is equal to the value of the second Angle instance, otherwise false.
◆ operator>()
Greater than operator for Angle struct.
- Parameters
-
- Returns
- True if the value of the first Angle instance is greater than the value of the second Angle instance, otherwise false.
◆ operator>=()
Greater than or equal to operator for Angle struct.
- Parameters
-
- Returns
- True if the value of the first Angle instance is greater than or equal to the value of the second Angle instance, otherwise false.
◆ ToString()
| override string ToString |
( |
| ) |
|
String representation of the Angle.
◆ SIZE
Size of this struct in bytes.