Curve::ConicBase class reference
[Core module]
Declaration
#include <Goptical/Curve/ConicBase>
namespace Goptical {
namespace Curve {
class ConicBase;
};
};
This class is a member of the Curve namespace.
This abstract class contains pure virtuals.
Inheritance
Description
This base class defines common properties of rotationally symmetric conic curves. These curves are all defined by a radius of curvature and deformation coefficient.
Fitting can be used to find best fit conic of an other rotationally symmetric curve either with fixed or free deformation parameter.
Members
See also the full member list section for this class.
Inherited members
- 2 members inherited from CurveRoc
- 9 members inherited from Rotational
Functions
- virtual double derivative(double r) const = 0;
- double fit_roc(const Rotational &c, double radius, unsigned int count)
- double get_eccentricity() const
- double get_schwarzschild() const
- virtual bool intersect(Math::Vector3 &point, const Math::VectorPair3 &ray) const = 0;
- virtual double sagitta(double r) const = 0;
Members detail
This pure virtual function shadows the derivative
virtual function defined in the Rotational
base abstract class.
Documentation inherited from base class:
Get curve derivative at specified distance from origin.
- r: distance from curve origin (0, 0)
double fit_roc(const Rotational &c, double radius, unsigned int count)
Adjust radius of curvature to best fit given curve. Deformation Won't be changed by this function. See Conic::fit() to adjust deformation too.
Parameters list:
- curve: Curve to fit
- radius: Maximum radius used to get sample points
- count: Number of sample points to use
get eccentricity
get Schwarzschild constant
virtual bool intersect(Math::Vector3 &point, const Math::VectorPair3 &ray) const = 0;
This pure virtual function shadows the intersect
virtual function defined in the Base
base abstract class.
Documentation inherited from base class:
Get intersection point between curve and 3d ray. Return false if no intersection occurred
This pure virtual function shadows the sagitta
pure virtual function defined in the Rotational
base abstract class.
Documentation inherited from base class:
Get curve sagitta at specified distance from origin.
- r: distance from curve origin (0, 0)