#include <adsomath.h>
Public Member Functions | |
| v2d | hat () |
| double | length () |
| double | dist (v2d p) |
| v2d | norm () |
| v2d | operator= (const v2d v) |
| int | operator== (const v2d a) |
| v2d | operator+ (const v2d a) |
| v2d | operator- (const v2d a) |
| v2d | operator * (const v2d a) |
| v2d | operator/ (const double d) |
| v2d | operator * (const double m) |
| v2d (double cx, double cy) | |
| v2d () | |
Public Attributes | |
| double | x |
| double | y |
Friends | |
| v2d | operator * (const double m, v2d v) |
|
||||||||||||
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
||||||||||||
|
|
|
|
|
|
|
|
1.3.2