oevislib_net  0.14.3.0
Loading...
Searching...
No Matches
Interpolations

Functions

static Point2D oevislib_net.Geometry.Interpolations.Interpolate (Point2D inPoint0, Point2D inPoint1, float inLambda=0.5f)
 Computes a new point using linear interpolation.
static Segment2D oevislib_net.Geometry.Interpolations.Interpolate (Segment2D inSegment0, Segment2D inSegment1, float inLambda=0.5f, bool inIgnoreOrientation=true)
 Computes a new segment using linear interpolation.
static Vector2D oevislib_net.Geometry.Interpolations.Interpolate (Vector2D inVector0, Vector2D inVector1, float inLambda=0.5f)
 Computes a new vector using linear interpolation.
static Vector2D oevislib_net.Geometry.Interpolations.Interpolate (Vector2D inVector0, Vector2D inVector1, RotationDirection inRotationDirection=RotationDirection.Clockwise, float inLambda=0.5f)
 Computes a new radial vector using linear interpolation.
static float oevislib_net.Geometry.Interpolations.Interpolate (float inAngle0, float inAngle1, float inLambda=0.5f, AngleRange inAngleRange=AngleRange._0_180, RotationDirection inRotationDirection=RotationDirection.Clockwise, bool inInverse=false)
 Computes a new angle using linear interpolation.
static Path oevislib_net.Geometry.Interpolations.Interpolate (Path inPath0, Path inPath1, float inLambda=0.5f)
 Computes a new path using linear interpolation.
static Point2D oevislib_net.Geometry.Interpolations.Midpoint (Point2D inPoint1, Point2D inPoint2)
 Computes the midpoint of the segment connecting the two provided points.

Detailed Description

Function Documentation

◆ Interpolate() [1/6]

float oevislib_net.Geometry.Interpolations.Interpolate ( float inAngle0,
float inAngle1,
float inLambda = 0::5f,
AngleRange inAngleRange = AngleRange::_0_180,
RotationDirection inRotationDirection = RotationDirection::Clockwise,
bool inInverse = false )
inlinestatic

Computes a new angle using linear interpolation.

Parameters
inAngle0First input angle.
inAngle1Second input angle.
inLambdaInterpolation coefficient.
inAngleRangeRange of value used to normalize the output value.
inRotationDirectionDirection of rotation used for the linear interpolation.
inInverseIf true, angles are considered with the inverted sign.
Returns
The computed value.

◆ Interpolate() [2/6]

Path oevislib_net.Geometry.Interpolations.Interpolate ( Path inPath0,
Path inPath1,
float inLambda = 0::5f )
inlinestatic

Computes a new path using linear interpolation.

Parameters
inPath0First input path.
inPath1Second input path.
inLambdaInterpolation coefficient.
Returns
The computed object.

◆ Interpolate() [3/6]

Point2D oevislib_net.Geometry.Interpolations.Interpolate ( Point2D inPoint0,
Point2D inPoint1,
float inLambda = 0::5f )
inlinestatic

Computes a new point using linear interpolation.

Parameters
inPoint0First input point.
inPoint1Second input point.
inLambdaInterpolation coefficient.
Returns
The computed point.

◆ Interpolate() [4/6]

Segment2D oevislib_net.Geometry.Interpolations.Interpolate ( Segment2D inSegment0,
Segment2D inSegment1,
float inLambda = 0::5f,
bool inIgnoreOrientation = true )
inlinestatic

Computes a new segment using linear interpolation.

Parameters
inSegment0First input segment.
inSegment1Second input segment.
inLambdaInterpolation coefficient.
inIgnoreOrientationIf false, points are interpolated based on their distance. Otherwise, segments' points are interpolated respecting their order in the constructor.
Returns
The computed segment.

◆ Interpolate() [5/6]

Vector2D oevislib_net.Geometry.Interpolations.Interpolate ( Vector2D inVector0,
Vector2D inVector1,
float inLambda = 0::5f )
inlinestatic

Computes a new vector using linear interpolation.

Parameters
inVector0First input vector.
inVector1Second input vector.
inLambdaInterpolation coefficient.
Returns
The computed vector.

◆ Interpolate() [6/6]

Vector2D oevislib_net.Geometry.Interpolations.Interpolate ( Vector2D inVector0,
Vector2D inVector1,
RotationDirection inRotationDirection = RotationDirection::Clockwise,
float inLambda = 0::5f )
inlinestatic

Computes a new radial vector using linear interpolation.

Parameters
inVector0First input vector.
inVector1Second input vector.
inRotationDirectionDirection of rotation used for the linear interpolation.
inLambdaInterpolation coefficient.
Returns
The computed vector.

◆ Midpoint()

Point2D oevislib_net.Geometry.Interpolations.Midpoint ( Point2D inPoint1,
Point2D inPoint2 )
inlinestatic

Computes the midpoint of the segment connecting the two provided points.

Parameters
inPoint1First input point.
inPoint2Second input point.
Returns
The computed object.