#include <point.h>
Public Types | |
enum | { no_init = 0, zero_init = 1 } |
Public Methods | |
point () | |
point (int n1, int init) | |
point (int n1) | |
point (const double x1) | |
point (const double x, const double y) | |
point (const double x, const double y, const double z) | |
point (const double a[], int nn) | |
point (const point &v) | |
~point () | |
int | dim () const |
point & | operator= (const point &v) |
point & | operator+= (const point &v) |
point & | operator-= (const point &v) |
point & | operator *= (const double d) |
point & | operator/= (const double d) |
double & | operator[] (int i) |
const double & | operator[] (int i) const |
double | length () const |
double | length2 () const |
point | normalize () const |
Protected Attributes | |
int | n |
double * | x |
Friends | |
point | combine (const point &a, const point &b) |
point | operator- (const point &a) |
point | operator+ (const point &a, const point &b) |
point | operator- (const point &a, const point &b) |
point | operator * (const point &a, const double d) |
point | operator * (const double d, const point &a) |
double | operator * (const point &a, const point &b) |
point | operator/ (const point &a, const double d) |
ostream & | operator<< (ostream &s, const point &v) |
istream & | operator>> (istream &s, point &v) |
void | swap (point &a, point &b) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 47 of file point.h. References n. Referenced by point_traits< point >::Dim, and IsNullvector. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 80 of file point.C. References length2. Referenced by normalize. |
|
Definition at line 83 of file point.C. Referenced by length. |
|
Definition at line 91 of file point.C. References length. |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Definition at line 25 of file point.h. Referenced by combine, dim, length2, operator *, operator *=, operator+, operator+=, operator-, operator-=, operator/=, operator<<, operator=, operator>>, operator[], point, and ~point. |
|
Definition at line 26 of file point.h. Referenced by length2, operator *=, operator+=, operator-=, operator/=, operator=, operator[], point, and ~point. |