Interface PathLength


public interface PathLength
  • Method Summary

    Modifier and Type
    Method
    Description
    float
    angleAtLength(float length)
    Returns the slope of the path at the specified length.
    float
    Returns the length of the path used by this PathLength object.
    pointAtLength(float length)
    Returns the point that is at the given length along the path.
  • Method Details

    • angleAtLength

      float angleAtLength(float length)
      Returns the slope of the path at the specified length.
      Parameters:
      length - The length along the path
      Returns:
      the angle in radians, in the range [-Math.PI, Math.PI].
    • lengthOfPath

      float lengthOfPath()
      Returns the length of the path used by this PathLength object.
      Returns:
      The length of the path.
    • pointAtLength

      Point2D pointAtLength(float length)
      Returns the point that is at the given length along the path.
      Parameters:
      length - The length along the path
      Returns:
      The point at the given length