MeshKernel
|
A struct describing a point in a two-dimensional space. More...
#include <Point.hpp>
Public Member Functions | |
Point () | |
Constructor initializing with missing values. | |
Point (double x, double y) | |
Constructor initializing with given coordinates. More... | |
void | SetInvalid () |
Set the point to be invalid. More... | |
Point & | operator+= (const Point &p) |
Inplace add point to point. | |
Point & | operator-= (const Point &p) |
Inplace subtract point from point. | |
Point & | operator+= (const Vector &vec) |
Inplace add vector to a point. | |
Point & | operator-= (const Vector &vec) |
Inplace subtract vector from a point. | |
Point & | operator/= (const Point &p) |
Inplace divide point by point. More... | |
Point & | operator*= (const Point &p) |
Inplace multiply point by point. | |
Point & | operator+= (const double p) |
Inplace add scalar to point. | |
Point & | operator-= (const double p) |
Inplace subtract scalar from point. | |
Point & | operator/= (const double p) |
Inplace divide point by scalar. More... | |
Point & | operator*= (const double p) |
Inplace multiply point by scalar. | |
Point | operator* (int const &rhs) const |
Overloads multiplication with a integer. | |
void | TransformSphericalToCartesian (double referenceLatitude) |
Transforms spherical coordinates to cartesian. More... | |
bool | IsValid (const double missingValue=constants::missing::doubleValue) const |
Determines if one of the point coordinates equals to missingValue . | |
Public Attributes | |
double | x |
X-coordinate. | |
double | y |
Y-coordinate. | |
A struct describing a point in a two-dimensional space.
|
inline |
Constructor initializing with given coordinates.
[in] | x | coordinate |
[in] | y | coordinate |
|
inline |
Inplace divide point by scalar.
|
inline |
Inplace divide point by point.
|
inline |
Set the point to be invalid.
Both x and y values are set to the null, missing value
|
inline |
Transforms spherical coordinates to cartesian.
< Factor used in the transformation from spherical to Cartesian coordinates