FitVector Class Reference
Public Member Functions | |
| FitVector (const QPointF &p) | |
| FitVector () | |
| FitVector (const QPointF &a, const QPointF &b) | |
| void | normalize () |
| void | negate () |
| void | scale (double s) |
| double | dot (const FitVector &v) |
| double | length () |
| QPointF | operator+ (const QPointF &p) |
Public Attributes | |
| double | m_X |
| double | m_Y |
Detailed Description
Definition at line 37 of file KarbonCurveFit.cpp.
Constructor & Destructor Documentation
| FitVector::FitVector | ( | const QPointF & | p | ) | [inline] |
| FitVector::FitVector | ( | ) | [inline] |
| FitVector::FitVector | ( | const QPointF & | a, | |
| const QPointF & | b | |||
| ) | [inline] |
Member Function Documentation
| void FitVector::normalize | ( | ) | [inline] |
Definition at line 54 of file KarbonCurveFit.cpp.
References length(), m_X, and m_Y.
Referenced by ComputeCenterTangent(), ComputeLeftTangent(), and ComputeRightTangent().
| void FitVector::negate | ( | ) | [inline] |
| void FitVector::scale | ( | double | s | ) | [inline] |
Definition at line 66 of file KarbonCurveFit.cpp.
References length(), m_X, and m_Y.
Referenced by FitCubic(), and GenerateBezier().
| double FitVector::dot | ( | const FitVector & | v | ) | [inline] |
| double FitVector::length | ( | ) | [inline] |
Definition at line 78 of file KarbonCurveFit.cpp.
Referenced by ComputeMaxError(), normalize(), and scale().
| QPointF FitVector::operator+ | ( | const QPointF & | p | ) | [inline] |
Member Data Documentation
| double FitVector::m_X |
Definition at line 88 of file KarbonCurveFit.cpp.
Referenced by ComputeCenterTangent(), dot(), FitVector(), length(), negate(), normalize(), operator+(), scale(), VectorAdd(), VectorScale(), and VectorSub().
| double FitVector::m_Y |
Definition at line 88 of file KarbonCurveFit.cpp.
Referenced by ComputeCenterTangent(), dot(), FitVector(), length(), negate(), normalize(), operator+(), scale(), VectorAdd(), VectorScale(), and VectorSub().
The documentation for this class was generated from the following file:
