#include <Curve.h>
Public Member Functions | |
virtual float | evaluate (float x) const =0 |
virtual uint32_t | addControlPoint (const Vec2R &controlPoint)=0 |
virtual void | addControlPoints (::NvParameterized::Interface *param,::NvParameterized::Handle &hPoints)=0 |
virtual bool | calculateControlPoints (float x, Vec2R &outXPoints, Vec2R &outYPoints) const =0 |
virtual uint32_t | calculateFollowingControlPoint (float xValue) const =0 |
virtual const Vec2R * | getControlPoints (uint32_t &outCount) const =0 |
get the array of control points |
Detailed Description
The Curve is a class for storing control points on a curve and evaluating the results later.
Member Function Documentation
virtual uint32_t nvidia::apex::Curve::addControlPoint | ( | const Vec2R & | controlPoint | ) | [pure virtual] |
Add a control point to the list of control points, returning the index of the new point.
virtual void nvidia::apex::Curve::addControlPoints | ( | ::NvParameterized::Interface * | param, |
::NvParameterized::Handle & | hPoints | ||
) | [pure virtual] |
Add a control points to the list of control points. Assuming the hPoints points to a list of vec2s
virtual bool nvidia::apex::Curve::calculateControlPoints | ( | float | x, |
Vec2R & | outXPoints, | ||
Vec2R & | outYPoints | ||
) | const [pure virtual] |
Locates the control points that contain x, placing the resulting control points in the two out parameters. Returns true if the points were found, false otherwise. If the points were not found, the output variables are untouched
virtual uint32_t nvidia::apex::Curve::calculateFollowingControlPoint | ( | float | xValue | ) | const [pure virtual] |
Locates the first control point with x larger than xValue or the nimber of control points if such point doesn't exist
virtual float nvidia::apex::Curve::evaluate | ( | float | x | ) | const [pure virtual] |
Retrieve the output Y for the specified input x, based on the properties of the stored curve described by mControlPoints.
The documentation for this class was generated from the following file:
Generated on Fri Dec 15 2017 13:58:38
Copyright © 2012-2017 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved.