Class SingleCurve3f

    • Method Detail

      • GetLength

        public float GetLength​(float fT0,
                               float fT1)
        Description copied from class: Curve3f
        Get the length of the curve for the specified time subinterval.
        Specified by:
        GetLength in class Curve3f
        Parameters:
        fT0 - Minimum time of the subinterval. Clipped to getMinTime() if less than it.
        fT1 - Minimum time of the subinterval. Clipped to getMaxTime() if greater than it.
        Returns:
        Computed length curve for the specified time subinterval.
      • GetTime

        public float GetTime​(float fLength,
                             int iIterations,
                             float fTolerance)
        Description copied from class: Curve3f
        Re-parameterize the curve where the time value is defined as a function of arc length. Location the time value associated with this arc length along the curve.
        Specified by:
        GetTime in class Curve3f
        Parameters:
        fLength - Input arc length for which the associated time is to be determined. This length is measured from the starting point of the curve which is at the getMinTime().
        iIterations - iterations to run Newton's method
        fTolerance - tolerance for early termination
        Returns:
        Time value associated with this arc length along the curve. The returned value is always within the range of getMinTime() and getMaxTime().