C++ Interfaces: Line2d.
More...
#include <float.h>
#include "geometry.h"
Go to the source code of this file.
|
#define | LINE_TEM template <class num> inline |
|
#define | LINE_FUN Line2d<num> |
|
#define | LazyCaching |
|
#define | LINE_UNARY_OPERATOR_SCALAR(op) |
|
#define | LINE_BINARY_OPERATOR_SCALAR(op) |
|
#define | LINE_BINARY_OPERATOR_VECTOR(op) |
|
#define | LINE_UNARY_OPERATOR_VECTOR(op) |
|
|
typedef Line2d< double > | line2d |
|
typedef Line2d< float > | line2f |
|
typedef Line2d< int > | line2i |
|
C++ Interfaces: Line2d.
- Author
- Joydeep Biswas, (C) 2010
Definition in file line.h.
#define LINE_BINARY_OPERATOR_SCALAR |
( |
|
op | ) |
|
Value:LINE_TEM \
Line2d<num> LINE_FUN::operator op (num f) const\
{ \
GVector::vector2d<num> p0_ = p0 op f; \
GVector::vector2d<num> p1_ = p1 op f; \
}
Definition at line 499 of file line.h.
#define LINE_BINARY_OPERATOR_VECTOR |
( |
|
op | ) |
|
Value:LINE_TEM \
{ \
GVector::vector2d<num> p0_ = p0 op v; \
GVector::vector2d<num> p1_ = p1 op v; \
}
Definition at line 511 of file line.h.
#define LINE_UNARY_OPERATOR_SCALAR |
( |
|
op | ) |
|
Value:LINE_TEM \
Line2d<num>& LINE_FUN::operator op (num f) \
{ \
p0 = p0 op f; \
p1 = p1 op f; \
updateRequired = true; \
return(*this); \
}
Definition at line 486 of file line.h.
#define LINE_UNARY_OPERATOR_VECTOR |
( |
|
op | ) |
|
Value:LINE_TEM \
{ \
p0 = p0 op v; \
p1 = p1 op v; \
updateRequired = true; \
return(*this); \
}
Definition at line 523 of file line.h.