#include <pathtrap.h>
Inheritance diagram for NormCoord:
Public Member Functions | |
NormCoord () | |
NormCoord (double X, double Y) | |
NormCoord (NormCoord &Other) | |
void | Normalise (void) |
void | Average (NormCoord &C1, NormCoord &C2) |
double | GetLength () |
void | SetFromLine (DocCoord &P1, DocCoord &P2) |
void | SetNormalToLine (DocCoord &P1, DocCoord &P2) |
double | DotProduct (NormCoord &Other) |
NormCoord & | operator= (const NormCoord &Other) |
Public Attributes | |
double | x |
double | y |
Private Member Functions | |
CC_DECLARE_DYNCREATE (NormCoord) |
Definition at line 171 of file pathtrap.h.
|
Definition at line 176 of file pathtrap.h.
|
|
Definition at line 177 of file pathtrap.h.
|
|
Definition at line 178 of file pathtrap.h.
|
|
Definition at line 200 of file pathtrap.h. 00201 { 00202 if (C1.x + C2.x == 0.0 && C1.y + C2.y == 0.0) 00203 { 00204 double Temp = C1.x; 00205 x = C1.y; 00206 y = -Temp; 00207 } 00208 else 00209 { 00210 x = (C1.x + C2.x) / 2.0; 00211 y = (C1.y + C2.y) / 2.0; 00212 Normalise(); 00213 } 00214 }
|
|
|
|
Definition at line 239 of file pathtrap.h.
|
|
Definition at line 216 of file pathtrap.h.
|
|
Definition at line 182 of file pathtrap.h. 00183 { 00184 double Normalise = sqrt(x*x + y*y); 00185 if (Normalise == 0.0) 00186 { 00187 TRACE( _T("** NormCoord::Normalise - Zero-length vector (%f)\n"), Normalise); 00188 } 00189 else 00190 { 00191 Normalise = 1/Normalise; 00192 x *= Normalise; 00193 y *= Normalise; 00194 } 00195 }
|
|
Definition at line 245 of file pathtrap.h.
|
|
Definition at line 222 of file pathtrap.h.
|
|
Definition at line 230 of file pathtrap.h.
|
|
Definition at line 253 of file pathtrap.h. |
|
Definition at line 254 of file pathtrap.h. |