oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Angle Metrics

Functions

static float oevislib_net.Geometry.AngleMetrics.NormalizeAngle (float inAngle)
 Computes the angle normalized in the range [0, 360).
static float oevislib_net.Geometry.AngleMetrics.NormalizeAngle (float inAngle, AngleRange inAngleRange, float inBaseAngle=0.0f)
 Normalizes an angle using the provided range.
static float oevislib_net.Geometry.AngleMetrics.MeasureAngle (float inDirection1, float inDirection2, RotationDirection inRotationDirection, AngleRange inAngleRange)
 Measures the angle created by the two provided directions.
static float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle (float inDirection1, float inDirection2, RotationDirection inRotationDirection, AngleRange inAngleRange)
 Measures the angle formed between the two provided directions.
static float oevislib_net.Geometry.AngleMetrics.MeasureAngle (Vector2D inVector1, Vector2D inVector2, RotationDirection inRotationDirection)
 Measures the angle formed between the two provided vectors.
static float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle (Vector2D inVector1, Vector2D inVector2, RotationDirection inRotationDirection)
 Measures the angle formed between the two provided vectors.
static float oevislib_net.Geometry.AngleMetrics.MeasureAngle (Line2D inLine1, Line2D inLine2)
 Measures the smallest angle formed between two lines.
static float oevislib_net.Geometry.AngleMetrics.MeasureAngle (Point2D inPoint1, Point2D inPoint2, Point2D inPoint3, RotationDirection inRotationDirection, Optional< Arc2D > outArc=null)
 Measures the angle formed between the three provided points.
static float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle (Point2D inPoint1, Point2D inPoint2, Point2D inPoint3, RotationDirection inRotationDirection, Optional< Arc2D > outArc=null)
 Measures the angle formed between the three provided points.
static float oevislib_net.Geometry.AngleMetrics.MeasureAngle (Segment2D inSegment1, Segment2D inSegment2, AngleMetric inAngleMetric, Optional< Arc2D > outArc=null)
 Measures the angle formed between the two provided segments.
static float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle (Segment2D inSegment1, Segment2D inSegment2, AngleMetric inAngleMetric, Optional< Arc2D > outArc=null)
 Measures the angle formed between the two provided segments.

Detailed Description

Function Documentation

◆ MeasureAngle() [1/5]

float oevislib_net.Geometry.AngleMetrics.MeasureAngle ( float inDirection1,
float inDirection2,
RotationDirection inRotationDirection,
AngleRange inAngleRange )
inlinestatic

Measures the angle created by the two provided directions.

Parameters
inDirection1First input direction.
inDirection2Second input direction.
inRotationDirectionDirection of rotation considered by the algorithm.
inAngleRangeRange of the output value.
Returns
The absolute value of the computed angle.

◆ MeasureAngle() [2/5]

float oevislib_net.Geometry.AngleMetrics.MeasureAngle ( Line2D inLine1,
Line2D inLine2 )
inlinestatic

Measures the smallest angle formed between two lines.

Parameters
inLine1First input line.
inLine2Second input line.
Returns
The smallest angle created by the two lines. The other formed angle is its supplementary.

◆ MeasureAngle() [3/5]

float oevislib_net.Geometry.AngleMetrics.MeasureAngle ( Point2D inPoint1,
Point2D inPoint2,
Point2D inPoint3,
RotationDirection inRotationDirection,
Optional< Arc2D > outArc = null )
inlinestatic

Measures the angle formed between the three provided points.

Parameters
inPoint1First input point.
inPoint2Second input point. This is the center point that is connected both to points 1 and 3.
inPoint3Third input point.
inRotationDirectionDirection of rotation considered by the algorithm.
outArcArc object formed by the three points.
Returns
The computed angle in the range [0, 360), in degrees.

◆ MeasureAngle() [4/5]

float oevislib_net.Geometry.AngleMetrics.MeasureAngle ( Segment2D inSegment1,
Segment2D inSegment2,
AngleMetric inAngleMetric,
Optional< Arc2D > outArc = null )
inlinestatic

Measures the angle formed between the two provided segments.

Parameters
inSegment1First input segment.
inSegment2Second input segment.
inAngleMetricThe methods used by the algorithm to compute the angle.
outArcArc object formed by the two segments.
Returns
The computed angle in the range [0, 360), in degrees.

◆ MeasureAngle() [5/5]

float oevislib_net.Geometry.AngleMetrics.MeasureAngle ( Vector2D inVector1,
Vector2D inVector2,
RotationDirection inRotationDirection )
inlinestatic

Measures the angle formed between the two provided vectors.

Parameters
inVector1First input vector.
inVector2Second input vector.
inRotationDirectionDirection of rotation considered by the algorithm.
Returns
The computed angle in the range [0, 360), in degrees.

◆ MeasureDirectedAngle() [1/4]

float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle ( float inDirection1,
float inDirection2,
RotationDirection inRotationDirection,
AngleRange inAngleRange )
inlinestatic

Measures the angle formed between the two provided directions.

The sign depends on the rotation direction.

Parameters
inDirection1First input direction.
inDirection2Second input direction.
inRotationDirectionDirection of rotation considered by the algorithm.
inAngleRangeRange of the output value.
Returns
The value of the computed angle.

◆ MeasureDirectedAngle() [2/4]

float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle ( Point2D inPoint1,
Point2D inPoint2,
Point2D inPoint3,
RotationDirection inRotationDirection,
Optional< Arc2D > outArc = null )
inlinestatic

Measures the angle formed between the three provided points.

The sign depends on the rotation direction.

Parameters
inPoint1First input point.
inPoint2Second input point. This is the central point that is connected both to points 1 and 3.
inPoint3Third input point.
inRotationDirectionDirection of rotation considered by the algorithm.
outArcArc object formed by the three points.
Returns
The computed angle in the range [0, 360), in degrees.

◆ MeasureDirectedAngle() [3/4]

float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle ( Segment2D inSegment1,
Segment2D inSegment2,
AngleMetric inAngleMetric,
Optional< Arc2D > outArc = null )
inlinestatic

Measures the angle formed between the two provided segments.

The sign depends on the rotation direction.

Parameters
inSegment1First input segment.
inSegment2Second input segment.
inAngleMetricThe method used by the algorithm to compute the angle.
outArcArc object formed by the two segments.
Returns
The computed angle in the range [0, 360), in degrees.

◆ MeasureDirectedAngle() [4/4]

float oevislib_net.Geometry.AngleMetrics.MeasureDirectedAngle ( Vector2D inVector1,
Vector2D inVector2,
RotationDirection inRotationDirection )
inlinestatic

Measures the angle formed between the two provided vectors.

The sign depends on the rotation direction.

Parameters
inVector1First input vector.
inVector2Second input vector.
inRotationDirectionDirection of rotation considered by the algorithm.
Returns
The computed angle in the range [0, 360), in degrees.

◆ NormalizeAngle() [1/2]

float oevislib_net.Geometry.AngleMetrics.NormalizeAngle ( float inAngle)
inlinestatic

Computes the angle normalized in the range [0, 360).

Parameters
inAngleInput angle [deg].
Returns
The normalized angle.

◆ NormalizeAngle() [2/2]

float oevislib_net.Geometry.AngleMetrics.NormalizeAngle ( float inAngle,
AngleRange inAngleRange,
float inBaseAngle = 0::0f )
inlinestatic

Normalizes an angle using the provided range.

Parameters
inAngleInput angle [deg].
inAngleRangeRange used for the normalization.
inBaseAngleStart of the normalization range.
Returns
The normalized angle.