Angle Structure

CVB.Net Documentation
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

public struct Angle : IComparable<Angle>

The Angle type exposes the following members.

Constructors

  NameDescription
Public methodAngle
Generate a 0° angle.
Top
Properties

  NameDescription
Public propertyDeg
Get/set the value in degrees. Setting this property will automatically update the Rad property accordingly. Also, the value will be trimmed if enabled.
Public propertyIsTrimmed
Turn trimming of the value of the angle to the range -PI...PI on or off.
Public propertyRad
Get/set the value in Radians. Setting this property will automatically update the Deg property accordingly. Also, the value will be trimmed if enabled.
Top
Methods

  NameDescription
Public methodCompareTo
Implementation of the IComparable function
Public methodEquals
Equality comparison.
(Overrides ValueTypeEquals(Object).)
Public methodStatic memberFromDegrees(Double)
Create an angle in degrees.
Public methodStatic memberFromDegrees(Double, Boolean)
Create an angle in degrees.
Public methodStatic memberFromRadians(Double)
Create an angle in radians.
Public methodStatic memberFromRadians(Double, Boolean)
Create an angle in radians.
Public methodGetHashCode
Hash code generation.
(Overrides ValueTypeGetHashCode.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodToString
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.)
Top
Operators

  NameDescription
Public operatorStatic memberAddition
Add two angles.
Public operatorStatic memberDivision
Divide an angle by a number.
Public operatorStatic memberEquality
Compare two angles for equality.
Public operatorStatic memberGreaterThan
Comparison of two angles.
Public operatorStatic memberInequality
Compare two angles for inequality.
Public operatorStatic memberLessThan
Comparison of two angles.
Public operatorStatic memberMultiply(Double, Angle)
Multiply an angle with a number.
Public operatorStatic memberMultiply(Angle, Double)
Multiply an angle with a number.
Public operatorStatic memberSubtraction
Subtract two angles.
Top
Fields

  NameDescription
Public fieldStatic memberZero
Zero element.
Top
See Also

Reference