Angle
Represents an angle value.
Read time 1 minuteLast updated 6 days ago
Definition
- Type: Struct
- Namespace: UnityEngine.UIElements
- Assembly: UnityEngine.UIElementsModule
- Implements: IEquatable<Angle>
public struct Angle : IEquatable<Angle>
Constructors
Constructor | Description |
|---|---|
| Angle(System.Single) | Creates an Angle from a float and an optionnal AngleUnit. |
| Angle(System.Single,UnityEngine.UIElements.AngleUnit) | Creates an Angle from a float and an optionnal AngleUnit. |
Properties
Methods
Method | Description |
|---|---|
| ToDegrees | Returns the value of the angle, expressed in degrees. |
| ToGradians | Returns the value of the angle, expressed in gradians. |
| ToRadians | Returns the value of the angle, expressed in radians. |
| ToTurns | Returns the value of the angle, expressed in turns. |