CADability dotNET
The Angle type exposes the following members.
Constructors
Name | Description | |
---|---|---|
Angle(Double) |
Constructs an angle from the provided parameter
| |
Angle(GeoVector2D) |
Constructs the angle of the given vector. X-axis is 0, counterclockwise.
| |
Angle(Double, Double) |
Constructs an angle of a 2d vector (dx,dy)
| |
Angle(GeoPoint2D, GeoPoint2D) |
Constructs the angle
| |
Angle(GeoVector, GeoVector) |
Constructs the angle that is enclosed by the two vectors (between 0 and Math.PI)
| |
Angle(GeoVector2D, GeoVector2D) |
Constructs the angle that is needed to rotate the first vector counterclockwise to reach the second vector (between 0 and 2.0*Math.PI)
|
Methods
Name | Description | |
---|---|---|
Deg |
Creates an angle from the provided parameter (in degrees)
| |
FromDegree |
Returns an angle from the parameter interpreted as degrees
| |
GetObjectData | ||
IsCloseTo |
Returns true if the radians differ less than 1e-12
| |
Sweeps |
Liefert true, wenn der im Parameter gegebene TestWinkel von diesem Winkel
ausgehend mit dem SweepAngle überstrichen wird.
| |
ToString |
Representation of this angle as a string in degrees
(Overrides ValueType..::..ToString()()()().) |
Operators
Name | Description | |
---|---|---|
Addition |
Adds the sweep angle to the angle
| |
ImplicitWideningImplicitImplicitImplicit(Double to Angle) |
Casts a double to an angle. The result will be between 0 and 2*pi
double value Return ValueAngle | |
ImplicitWideningImplicitImplicitImplicit(Angle to Double) |
Casts an angle to a double. The radian of the angle is returned.
the angle Return Valuethe radian | |
ImplicitWideningImplicitImplicitImplicit(SweepAngle to Angle) |
Casts the sweep angle to an angle with the same value
| |
Subtraction(Angle, Angle) |
Returns the sweep angle that leads from angB to angA | |
Subtraction(Angle, SweepAngle) |
Returns the angle minus the provided sweep angle
|
Properties
Name | Description | |
---|---|---|
A0 |
Angle for 0°
| |
A180 |
Angle for 180°
| |
A270 |
Angle for 270°
| |
A30 |
Angle for 30°
| |
A45 |
Angle for 45°
| |
A60 |
Angle for 60°
| |
A90 |
Angle for 90°
| |
Degree | ||
Direction |
Sets the angle to the angle of the given vector. Gets a unit vector with the angle.
| |
Quadrant |
Quadrant of the angle. Yields 0 to 3. 0: right top,
1: left top, 2: left bottom, 3: right bottom
| |
Radian |