class Angle¶
- class NemAll_Python_Geometry.Angle¶
Representation class for angle in [rad].
- DegToRad(angleDeg: float) float ¶
Convert angle from deg to rad
Can be used for initialization of Angle class with deg angle.
    angle = Angle(Angle.DegToRad(45));  // angle will be 0.75[rad] (approx.)
- Get() float ¶
Get angle as radian value.
- Returns:
double as radian value.
- GetDeg() float ¶
Get angle as degree value.
- Returns:
double as degree value.
- Normalize2Pi() None ¶
Normalize the angle to a range of <0, 2PI>.
This method is checked and set Angle to 0 while angle is out of range <-1e8, 1e8>. The algorithm isn’t stable for angle out of this range.
- NormalizePi() None ¶
Normalize the angle to a range of <-PI, PI>.
This method is checked and set Angle to 0 while angle is out of range <-1e8, 1e8>. The algorithm isn’t stable for angle out of this range.
- RadToDeg(angleRad: float) float ¶
- RadToGrad(angleRad: float) float ¶
- Set(...)¶
- Set(angle: float) None ¶
Set angle as radian value.
- Args:
angle:  angle which will be set.
- SetDeg(angleDeg: float) None ¶
Set angle as degree value.
- Args:
angleDeg:  angle as degree value which will be set.
- __add__(...)¶
- __eq__(angle: Angle) bool ¶
Comparison of angles without tolerance.
Be careful, this method work without tolerance!
- Args:
angle:  Compared angle.
- Returns:
True when angles are equal, otherwise false.
- __ne__(angle: Angle) bool ¶
Comparison of angles without tolerance.
Be careful, this method work without tolerance!
- Args:
angle: Compared angle.
- Returns:
True when angles are not equal, otherwise false.
- __repr__() str ¶
Convert to string
- property Deg: float¶
Get angle as degree value.
Set angle as degree value.
- property Rad: float¶
Get angle as radian value.
Set angle as radian value.
- __module__ = 'NemAll_Python_Geometry'¶