Angle
Represents an angle value.
阅读时间1 分钟最后更新于 1 个月前
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. |