Class RMPathOffsetter
java.lang.Object
com.inductiveautomation.rm.graphics.RMPathOffsetter
Offset path - a path that follows the curvature of the input path but is located a constant distance away from the
curve.
Mathematically, the offset path is the path defined by tracing the normal to the curve, scaled by d, along the entire path.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic RMPath
createOffsetPath
(RMPath aPath, float offset) Create offset path.static void
evaluateBezierAndTangent
(int degree, double t, RMPoint[] cpts, RMPoint tpoint, RMSize tan) Simultaneously find point on curve, as well as the tangent at that point.static RMHitInfo
Dispatches to the right call depending on the subclass.
-
Constructor Details
-
RMPathOffsetter
public RMPathOffsetter()
-
-
Method Details
-
createOffsetPath
Create offset path. -
hitInfo
Dispatches to the right call depending on the subclass. -
evaluateBezierAndTangent
public static void evaluateBezierAndTangent(int degree, double t, RMPoint[] cpts, RMPoint tpoint, RMSize tan) Simultaneously find point on curve, as well as the tangent at that point.
-