Object for convenient and type-safe handling of angles. More...
Inherits object.
Public Member Functions | |
| cvb.Angle | from_degrees (float deg, bool trim=False) |
| Create an angle in degrees. More... | |
| cvb.Angle | from_radians (float rad, bool trim=False) |
| Create an angle in radians. More... | |
Properties | |
| deg = property | |
| float: Gets or sets the value in degrees. More... | |
| is_trimmed = property | |
| bool: Gets or sets trimming of the value of the angle to the range -PI...PI. More... | |
| rad = property | |
| float: Gets or sets the value in radians. More... | |
Object for convenient and type-safe handling of angles.
Default creates a 0 degree angle.
trim : bool Enable trimming of values between -PI...PI.
| cvb.Angle from_degrees | ( | float | deg, |
| bool | trim = False |
||
| ) |
| cvb.Angle from_radians | ( | float | rad, |
| bool | trim = False |
||
| ) |
|
static |
float: Gets or sets the value in degrees.
|
static |
bool: Gets or sets trimming of the value of the angle to the range -PI...PI.
|
static |
float: Gets or sets the value in radians.