java.lang.Object
com.marginallyclever.convenience.bezier3.Bezier3

public class Bezier3 extends Object
3D Bezier curve implementation. All points are in the same space - p1 and p2 are not relative to p0 and p3, respectively. See Wikipedia
  • Field Summary Link icon

    Fields
    Modifier and Type
    Field
    Description
    javax.vecmath.Vector3d
     
    javax.vecmath.Vector3d
     
    javax.vecmath.Vector3d
     
    javax.vecmath.Vector3d
     
  • Constructor Summary Link icon

    Constructors
    Constructor
    Description
     
  • Method Summary Link icon

    Modifier and Type
    Method
    Description
    javax.vecmath.Vector3d
    interpolate(double i)
    interpolate along the path.

    Methods inherited from class java.lang.Object Link icon

    equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details Link icon

    • p0 Link icon

      public javax.vecmath.Vector3d p0
    • p1 Link icon

      public javax.vecmath.Vector3d p1
    • p2 Link icon

      public javax.vecmath.Vector3d p2
    • p3 Link icon

      public javax.vecmath.Vector3d p3
  • Constructor Details Link icon

    • Bezier3 Link icon

      public Bezier3()
  • Method Details Link icon

    • interpolate Link icon

      public javax.vecmath.Vector3d interpolate(double i)
      interpolate along the path. This code is slow, intuitive, and it works.
      Parameters:
      i - 0...1 inclusive
      Returns:
      the interpolated Vector3d along the path.