#include <fitcurve.h>
Public Member Functions | |
FitPoint () | |
FitPoint (double cx, double cy) | |
FitPoint (DocCoord coord) | |
FitPoint (const FitPoint &Other) | |
~FitPoint () | |
void | operator= (const FitPoint &Other) |
void | operator= (const DocCoord &Other) |
FitPoint | SetLength (double NewLen) |
Scales the FitPoint vector to by the specified length. | |
FitPoint | operator- () |
Unary Minus for a FitPoint (Vector). | |
FitPoint | operator * (double Factor) |
FitPoint Multiply function. This will multiply the vector by a constant Factor. The result is returned. | |
double | SquaredLength () |
double | Length () |
double | Dot (const FitPoint &Other) |
void | Dump () |
Dumps the values of the FitPoint class to the TRACE output. | |
Public Attributes | |
double | x |
double | y |
Private Member Functions | |
CC_DECLARE_MEMDUMP (FitPoint) | |
Friends | |
FitPoint | operator+ (const FitPoint &Point1, const FitPoint &Point2) |
Adds two FitPoint vectors together. This function is a Friend of the FitPoint class. | |
FitPoint | operator- (const FitPoint &Point1, const FitPoint &Point2) |
Subtracts the two FitPoint vectors. This function is a Friend of the FitPoint class. |
Definition at line 121 of file fitcurve.h.
|
Definition at line 128 of file fitcurve.h.
|
|
Definition at line 129 of file fitcurve.h.
|
|
Definition at line 130 of file fitcurve.h.
|
|
Definition at line 131 of file fitcurve.h.
|
|
Definition at line 134 of file fitcurve.h.
|
|
|
|
Definition at line 156 of file fitcurve.h.
|
|
Dumps the values of the FitPoint class to the TRACE output.
Definition at line 274 of file fitcurve.cpp.
|
|
Definition at line 155 of file fitcurve.h.
|
|
FitPoint Multiply function. This will multiply the vector by a constant Factor. The result is returned.
Definition at line 166 of file fitcurve.cpp. 00167 { 00168 FitPoint Result; 00169 00170 // Scale the vector by the factor 00171 Result.x = x*Factor; 00172 Result.y = y*Factor; 00173 00174 // and return it 00175 return Result; 00176 }
|
|
Unary Minus for a FitPoint (Vector).
Definition at line 139 of file fitcurve.cpp. 00140 { 00141 FitPoint Result; 00142 00143 // negate the vector 00144 Result.x = -x; 00145 Result.y = -y; 00146 00147 // and return it 00148 return Result; 00149 }
|
|
Definition at line 138 of file fitcurve.h.
|
|
Definition at line 137 of file fitcurve.h.
|
|
Scales the FitPoint vector to by the specified length.
Definition at line 192 of file fitcurve.cpp. 00193 { 00194 FitPoint Result(x, y); 00195 00196 double Len = Length(); 00197 if (Len != 0.0) 00198 { 00199 Len = NewLen/Len ; 00200 Result.x *= Len; 00201 Result.y *= Len; 00202 } 00203 00204 return Result; 00205 }
|
|
Definition at line 154 of file fitcurve.h.
|
|
Adds two FitPoint vectors together. This function is a Friend of the FitPoint class.
Definition at line 222 of file fitcurve.cpp. 00223 { 00224 FitPoint Result; 00225 00226 // Add the two vector together 00227 Result.x = Point1.x + Point2.x; 00228 Result.y = Point1.y + Point2.y; 00229 00230 // return the result 00231 return Result; 00232 }
|
|
Subtracts the two FitPoint vectors. This function is a Friend of the FitPoint class.
Definition at line 250 of file fitcurve.cpp. 00251 { 00252 FitPoint Result; 00253 00254 // Subtract the two vector from each other 00255 Result.x = Point1.x - Point2.x; 00256 Result.y = Point1.y - Point2.y; 00257 00258 // return the result 00259 return Result; 00260 }
|
|
Definition at line 162 of file fitcurve.h. |
|
Definition at line 163 of file fitcurve.h. |