#include <BPoint.h>

The meaning of the BPoint's x, y, and z fields is dependent upon the type of coordinate system in which the point exists. In a Cartesian coordinate system, the x, y, and z fields correspond the the x, y, and z coordinates, respectively. In a projected coordinate system, such as a UTM zone, The x field gives the east (or easting) coordinate, the y field gives the north (or northing) coordinate, and the z field gives the height coordinate. In a geodetic (or lat/lon) coordinate system, the x field gives the longitude coordinate, the y field gives the latitude coordinate, and the z field gives the height coordinate.
Public Member Functions | |
| BPoint (const BPoint &pt) | |
| Copy constructor. | |
| BPoint (double x, double y, double z=0.0) | |
| Constructs a BPoint with the specified coordinates. | |
| BPoint (BPoint3d pt) | |
| Constructs a BPoint that expresses the same location as the specified BPoint3d. | |
| BPoint () | |
| Default constructor. | |
| virtual size_t | ComputeSize (void) const |
| Computes the size of the BByteArray required to store this object. | |
| virtual double | DistanceTo (const BPoint &point) const |
| Calculates the distance from this BPoint to the specified BPoint. | |
| virtual void | FromByteArray (const BByteArray &bytes, size_t &startPos) |
| Initializes an instance of this object from a BByteArray. | |
| BPoint | MidPoint (const BPoint &point) const |
| Calculates the midpoint between this BPoint and the specified BPoint. | |
| bool | operator!= (const BPoint &rhs) const |
| Inquality operator. | |
| BPoint & | operator= (const BPoint &rhs) |
| Assignment operator. | |
| bool | operator== (const BPoint &rhs) const |
| Equality operator. | |
| virtual BByteArray | ToByteArray (void) const |
| Stores this object in a BByteArray. | |
| void | Transform (const BTransform &cst) |
| Transforms this BPoint to a different coordinate system. | |
| void | TransformReverse (const BTransform &cst) |
| Transforms this BPoint to a different coordinate system using the "reverse" of the BTransform. | |
| virtual | ~BPoint () |
| Destructor. | |
Static Public Member Functions | |
| static size_t | SizeOf (void) |
| Indicates the size of a BPoint in bytes. | |
| BPoint | ( | ) | [inline] |
Default constructor.
| BPoint | ( | double | x, | |
| double | y, | |||
| double | z = 0.0 | |||
| ) | [inline] |
Constructs a BPoint with the specified coordinates.
| x | The x-coordinate. | |
| y | The y-coordinate. | |
| z | The z-coordinate (optional). |
| virtual ~BPoint | ( | ) | [inline, virtual] |
Destructor.
| virtual size_t ComputeSize | ( | void | ) | const [inline, virtual] |
Computes the size of the BByteArray required to store this object.
Implements BByteStreamable.
| virtual double DistanceTo | ( | const BPoint & | point | ) | const [inline, virtual] |
| virtual void FromByteArray | ( | const BByteArray & | bytes, | |
| size_t & | startPos | |||
| ) | [virtual] |
Initializes an instance of this object from a BByteArray.
| bytes | The BByteArray containing the byte representation for this object. | |
| startPos | The position in the BByteArray where the byte representation begins. This value will be updated to point to the byte past the end of this object in the byte array. |
Implements BByteStreamable.
| bool operator!= | ( | const BPoint & | rhs | ) | const [inline] |
| bool operator== | ( | const BPoint & | rhs | ) | const [inline] |
| static size_t SizeOf | ( | void | ) | [inline, static] |
| virtual BByteArray ToByteArray | ( | void | ) | const [virtual] |
Stores this object in a BByteArray.
Implements BByteStreamable.
| void Transform | ( | const BTransform & | cst | ) |
Transforms this BPoint to a different coordinate system.
| cst | The BTransform that describes the transformation. |
| void TransformReverse | ( | const BTransform & | cst | ) |
Transforms this BPoint to a different coordinate system using the "reverse" of the BTransform.
| cst | The BTransform that describes the transformation. |