Vault
4.1
|
Go to the source code of this file.
Classes | |
class | VSizeT< T > |
VSizeT defines a width and height. More... | |
class | VPointT< T > |
VPointT defines a point with x and y coordinates. More... | |
class | VPoint3DT< T > |
VPoint3DT defines a point with x, y, and z coordinates. More... | |
class | VLineT< T > |
VLineT defines a line segment with two points. More... | |
class | VRectT< T > |
VRectT defines a rectangle. More... | |
class | VPolygonT< T > |
VPolygonT defines a polygon or series of points. More... | |
Typedefs | |
typedef VSizeT< VDouble > | VSize |
A size defined by w/h doubles. | |
typedef VSizeT< int > | VISize |
A size defined by w/h ints. | |
typedef VPointT< VDouble > | VPoint |
A point defined by x/y doubles. | |
typedef VPointT< int > | VIPoint |
A point defined by x/y ints. | |
typedef std::vector< VPoint > | VPointVector |
typedef std::vector< VIPoint > | VIPointVector |
typedef VPoint3DT< VDouble > | VPoint3D |
A 3D point defined by x/y/z doubles. | |
typedef VPoint3DT< int > | VIPoint3D |
A 3D point defined by x/y/z ints. | |
typedef VLineT< VDouble > | VLine |
A line defined by double-based points. | |
typedef VLineT< int > | VILine |
A line defined by integer-based points. | |
typedef VRectT< VDouble > | VRect |
A rectangle defined by double-based points. | |
typedef VRectT< int > | VIRect |
A rectangle defined by integer-based points. | |
typedef VPolygonT< VDouble > | VPolygon |
A polygon defined by double-based points. | |
typedef VPolygonT< int > | VIPolygon |
A polygon defined by integer-based points. | |
Functions | |
bool | VGeometry::equal (VDouble a, VDouble b) |
Returns true if the two doubles are equal to within 0.000001. | |
bool | VGeometry::notEqual (VDouble a, VDouble b) |
Returns true if the two doubles are not equal to within 0.000001. | |
bool | VGeometry::equal (int a, int b) |
Returns true if the two ints are equal. (Used in template-based code below regardless of type.) | |
bool | VGeometry::notEqual (int a, int b) |
Returns true if the two ints are not equal. (Used in template-based code below regardless of type.) | |
void | VGeometry::writePairToStream (VBinaryIOStream &stream, VDouble item1, VDouble item2) |
void | VGeometry::readPairFromStream (VBinaryIOStream &stream, VDouble &item1, VDouble &item2) |
void | VGeometry::writePairToStream (VBinaryIOStream &stream, int item1, int item2) |
void | VGeometry::readPairFromStream (VBinaryIOStream &stream, int &item1, int &item2) |
void | VGeometry::writeTripletToStream (VBinaryIOStream &stream, VDouble item1, VDouble item2, VDouble item3) |
void | VGeometry::readTripletFromStream (VBinaryIOStream &stream, VDouble &item1, VDouble &item2, VDouble &item3) |
void | VGeometry::writeTripletToStream (VBinaryIOStream &stream, int item1, int item2, int item3) |
void | VGeometry::readTripletFromStream (VBinaryIOStream &stream, int &item1, int &item2, int &item3) |
VDouble | VGeometry::getDistance (VDouble dx, VDouble dy) |
Returns the distance between two double-based points. | |
VDouble | VGeometry::getDistance (int dx, int dy) |
Returns the distance between two int-based points; the result must be a double. | |
template<typename T > | |
bool | operator== (const VSizeT< T > &s1, const VSizeT< T > &s2) |
template<typename T > | |
bool | operator!= (const VSizeT< T > &s1, const VSizeT< T > &s2) |
template<typename T > | |
VSizeT< T > | operator+ (const VSizeT< T > &s1, const VSizeT< T > &s2) |
template<typename T > | |
VSizeT< T > | operator- (const VSizeT< T > &s1, const VSizeT< T > &s2) |
template<typename T > | |
VSizeT< T > | operator* (const VSizeT< T > &x, T scale) |
template<typename T > | |
VSizeT< T > | operator* (T scale, const VSizeT< T > &x) |
template<typename T > | |
VSizeT< T > | operator/ (const VSizeT< T > &x, T divisor) |
template<typename T > | |
bool | operator== (const VPointT< T > &p1, const VPointT< T > &p2) |
template<typename T > | |
bool | operator!= (const VPointT< T > &p1, const VPointT< T > &p2) |
template<typename T > | |
VPointT< T > | operator+ (const VPointT< T > &p1, const VPointT< T > &p2) |
template<typename T > | |
VPointT< T > | operator+ (const VPointT< T > &p, const VSizeT< T > &s) |
template<typename T > | |
VPointT< T > | operator- (const VPointT< T > &p1, const VPointT< T > &p2) |
template<typename T > | |
VPointT< T > | operator- (const VPointT< T > &p, const VSizeT< T > &s) |
template<typename T > | |
VPointT< T > | operator- (const VPointT< T > &p) |
template<typename T > | |
VPointT< T > | operator* (const VPointT< T > &p, T scale) |
template<typename T > | |
VPointT< T > | operator* (T scale, const VPointT< T > &p) |
template<typename T > | |
VPointT< T > | operator/ (const VPointT< T > &p, T divisor) |
template<typename T > | |
bool | operator== (const VPoint3DT< T > &p1, const VPoint3DT< T > &p2) |
template<typename T > | |
bool | operator!= (const VPoint3DT< T > &p1, const VPoint3DT< T > &p2) |
template<typename T > | |
VPoint3DT< T > | operator+ (const VPoint3DT< T > &p1, const VPoint3DT< T > &p2) |
template<typename T > | |
VPoint3DT< T > | operator- (const VPoint3DT< T > &p1, const VPoint3DT< T > &p2) |
template<typename T > | |
VPoint3DT< T > | operator- (const VPoint3DT< T > &p) |
template<typename T > | |
VPoint3DT< T > | operator* (const VPoint3DT< T > &p, T scale) |
template<typename T > | |
VPoint3DT< T > | operator* (T scale, const VPoint3DT< T > &p) |
template<typename T > | |
VPoint3DT< T > | operator/ (const VPoint3DT< T > &p, T divisor) |
template<typename T > | |
bool | operator== (const VLineT< T > &line1, const VLineT< T > &line2) |
template<typename T > | |
bool | operator!= (const VLineT< T > &line1, const VLineT< T > &line2) |
template<typename T > | |
bool | operator== (const VRectT< T > &p1, const VRectT< T > &p2) |
template<typename T > | |
bool | operator!= (const VRectT< T > &p1, const VRectT< T > &p2) |
template<typename T > | |
bool | operator== (const VPolygonT< T > &p1, const VPolygonT< T > &p2) |
template<typename T > | |
bool | operator!= (const VPolygonT< T > &p1, const VPolygonT< T > &p2) |
Definition in file vgeometry.h.