Class BezierPath


  • public class BezierPath
    extends Path
    This class is used to generate points along a bezier curves
    • Constructor Detail

      • BezierPath

        public BezierPath​(Translation2d[] wayPoints)
        Parameters:
        wayPoints - The waypoints of the bezier curve
      • BezierPath

        public BezierPath​(Translation2d[] wayPoints,
                          double[] weights)
        Parameters:
        wayPoints - The waypoints of the bezier curve
        weights - The weights for each point point 0 and 2 should stay as close to 1 as possible
      • BezierPath

        public BezierPath​(Translation2d[] wayPoints,
                          double[] weights,
                          double spacing)
        Parameters:
        wayPoints - The waypoints of the bezier curve
        weights - The weights for each point point 0 and 2 should stay as close to 1 as possible
        spacing - the maximum amount of spacing allowed