Object for convenient and type-safe handling of angles.
Namespace: Stemmer.Cvb
Assembly: Stemmer.Cvb (in Stemmer.Cvb.dll) Version: 14.0.0.0
Syntax
The Angle type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Angle |
Generate a 0° angle.
|
Properties
Name | Description | |
---|---|---|
Deg |
Get/set the value in degrees. Setting this property will automatically
update the Rad property accordingly. Also, the value
will be trimmed if enabled.
| |
IsTrimmed |
Turn trimming of the value of the angle to the range -PI...PI on or off.
| |
Rad |
Get/set the value in Radians. Setting this property will automatically
update the Deg property accordingly. Also, the value will
be trimmed if enabled.
|
Methods
Name | Description | |
---|---|---|
CompareTo |
Implementation of the IComparable function
| |
Equals |
Equality comparison.
(Overrides ValueTypeEquals(Object).) | |
FromDegrees(Double) |
Create an angle in degrees.
| |
FromDegrees(Double, Boolean) |
Create an angle in degrees.
| |
FromRadians(Double) |
Create an angle in radians.
| |
FromRadians(Double, Boolean) |
Create an angle in radians.
| |
GetHashCode |
Hash code generation.
(Overrides ValueTypeGetHashCode.) | |
GetType | Gets the Type of the current instance. (Inherited from Object.) | |
ToString |
Convert the angle to a string. Although Radians is the predominantly
used unit for angles, the angle will be output as a degree string as
this is easier humanly readable.
(Overrides ValueTypeToString.) |
Operators
Name | Description | |
---|---|---|
Addition |
Add two angles.
| |
Division |
Divide an angle by a number.
| |
Equality |
Compare two angles for equality.
| |
GreaterThan |
Comparison of two angles.
| |
Inequality |
Compare two angles for inequality.
| |
LessThan |
Comparison of two angles.
| |
Multiply(Double, Angle) |
Multiply an angle with a number.
| |
Multiply(Angle, Double) |
Multiply an angle with a number.
| |
Subtraction |
Subtract two angles.
|
Fields
Name | Description | |
---|---|---|
Zero |
Zero element.
|
See Also