A struct describing a point in a two-dimensional space.
More...
#include <Point.hpp>
|
| Point () |
| Constructor initializing with missing values.
|
|
| Point (double x, double y) |
| Constructor initializing with given coordinates.
|
|
void | SetInvalid () |
| Set the point to be invalid.
|
|
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.
|
|
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.
|
|
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.
|
|
bool | IsValid (const double missingValue=constants::missing::doubleValue) const |
| Determines if one of the point coordinates equals to missingValue .
|
|
|
double | x |
| X-coordinate.
|
|
double | y |
| Y-coordinate.
|
|
A struct describing a point in a two-dimensional space.
◆ Point()
meshkernel::Point::Point |
( |
double |
x, |
|
|
double |
y |
|
) |
| |
|
inline |
Constructor initializing with given coordinates.
- Parameters
-
[in] | x | coordinate |
[in] | y | coordinate |
◆ operator/=() [1/2]
Inplace divide point by scalar.
- Note
- No check is made that the divisor is 0
◆ operator/=() [2/2]
Inplace divide point by point.
- Note
- No check is made that any component of the divisor is 0
◆ SetInvalid()
void meshkernel::Point::SetInvalid |
( |
| ) |
|
|
inline |
Set the point to be invalid.
Both x and y values are set to the null, missing value
◆ TransformSphericalToCartesian()
void meshkernel::Point::TransformSphericalToCartesian |
( |
double |
referenceLatitude | ) |
|
|
inline |
Transforms spherical coordinates to cartesian.
< Factor used in the transformation from spherical to Cartesian coordinates
The documentation for this class was generated from the following file:
- /home/runner/work/MeshKernel/MeshKernel/libs/MeshKernel/include/MeshKernel/Point.hpp