Documentation of 'medusa.georgios.color_factory.CubicBezierSegment3f' Java class
CubicBezierSegment3f
medusa.georgios.color_factory

Class CubicBezierSegment3f



  • public final class CubicBezierSegment3f
    extends java.lang.Object
    Provides capabilities to compute a cubic bezier segement.
    • Constructor Summary

      Constructors 
      Constructor and Description
      CubicBezierSegment3f()
      The default constructor creates and initialiazes the control nodes.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      Point3f computeHalfwayPoint()
      This method computes the point of the segment assuming parameter = 0.5f
      void computeInterpolation(Tuple3f prePoint, Tuple3f postPoint, float tangentScale)
      This method computes the internal node on the base of special criteria.
      Point3f computePoint(float t)
      Computes the point coordinate to the according parameter t .
      Vector3f computeTangent(float t)
      Computes the tangent to the segment at specified paramter t .
      void setFinalTangent(Tuple3f tangent)
      This method applies a tangent to the last node and thereby modifies a inner control node.
      void setInitialTangent(Tuple3f tangent)
      This method applies a tangent to the first node and thereby modifies a inner control node.
      void setNode(Tuple3f point, int index)
      Sets the specified note to point .
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • CubicBezierSegment3f

        public CubicBezierSegment3f()
        The default constructor creates and initialiazes the control nodes.
    • Method Detail

      • setNode

        public final void setNode(Tuple3f point,
                                  int index)
        Sets the specified note to point .
        Parameters:
        point - the new point.
        index - the index identifying which node to replace.
      • setInitialTangent

        public final void setInitialTangent(Tuple3f tangent)
        This method applies a tangent to the first node and thereby modifies a inner control node.
        Parameters:
        tangent - the tangent to apply.
      • setFinalTangent

        public final void setFinalTangent(Tuple3f tangent)
        This method applies a tangent to the last node and thereby modifies a inner control node.
        Parameters:
        tangent - the tangent to apply.
      • computeInterpolation

        public final void computeInterpolation(Tuple3f prePoint,
                                               Tuple3f postPoint,
                                               float tangentScale)
        This method computes the internal node on the base of special criteria.
        Parameters:
        prePoint - the point that is assumed to be a proper coordinate for extrapolation beyond parameter 0. Can be null .
        postPoint - the point that is assumed to be a proper coordinate for extrapolation beyond parameter 1.Can be null .
        tangentScale - factor to control the implicitly computed tangent length.
      • computePoint

        public final Point3f computePoint(float t)
        Computes the point coordinate to the according parameter t .
        Parameters:
        t - the parameter for the computation.
        Returns:
        Point3f - the computed point coordinate.
      • computeTangent

        public final Vector3f computeTangent(float t)
        Computes the tangent to the segment at specified paramter t .
        Parameters:
        t - the parameter for the computation.
        Returns:
        Vector3f - the computed tangent.
      • computeHalfwayPoint

        public final Point3f computeHalfwayPoint()
        This method computes the point of the segment assuming parameter = 0.5f
        Returns:
        Point3f - computed point.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.