Class RMPathOffsetter

java.lang.Object
com.inductiveautomation.rm.graphics.RMPathOffsetter

public class RMPathOffsetter extends Object
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 Details

    • RMPathOffsetter

      public RMPathOffsetter()
  • Method Details

    • createOffsetPath

      public static RMPath createOffsetPath(RMPath aPath, float offset)
      Create offset path.
    • hitInfo

      public static RMHitInfo hitInfo(RMLine l1, RMLine l2)
      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.