30#include "MeshKernel/Point.hpp"
85 return {p1.
x + p2.
x, p1.
y + p2.
y, p1.
z + p2.
z};
90 return {p1.
x - p2.
x, p1.
y - p2.
y, p1.
z - p2.
z};
95 return {p.
x / value, p.
y / value, p.
z / value};
100 return {value * p.
x, value * p.
y, value * p.
z};
110 return a.
x * b.
x + a.
y * b.
y + a.
z * b.
z;
A struct describing a point in a two-dimensional space.
Definition Point.hpp:41
Contains the logic of the C++ static library.
Definition AveragingInterpolation.hpp:37
Cartesian3DPoint VectorProduct(const Cartesian3DPoint &a, const Cartesian3DPoint &b)
Defines vector product for cartesian 3D-space.
Cartesian3DPoint operator+(const Cartesian3DPoint &p1, const Cartesian3DPoint &p2)
Add Cartesian point p2 to p1.
Definition Cartesian3DPoint.hpp:83
Cartesian3DPoint SphericalToCartesian3D(const Point &sphericalPoint)
Transforms 2D point in spherical coordinates to 3D cartesian coordinates.
Point Cartesian3DToSpherical(const Cartesian3DPoint &cartesianPoint, double referenceLongitude)
Transforms 3D cartesian coordinates to 2D point in spherical coordinates.
Cartesian3DPoint operator-(const Cartesian3DPoint &p1, const Cartesian3DPoint &p2)
Subtract Cartesian point p2 from p1.
Definition Cartesian3DPoint.hpp:88
Cartesian3DPoint operator/(const Cartesian3DPoint &p, const double value)
Divide Cartesian point p by a scalar value.
Definition Cartesian3DPoint.hpp:93
double InnerProduct(const Cartesian3DPoint &a, const Cartesian3DPoint &b)
Defines inner product in cartesian 3D-space.
Definition Cartesian3DPoint.hpp:108
Cartesian3DPoint operator*(const Cartesian3DPoint &p, const double value)
Multiply Cartesian point p by a scalar value.
Definition Cartesian3DPoint.hpp:103
A struct describing the three coordinates in a cartesian projection.
Definition Cartesian3DPoint.hpp:37
double y
Y-coordinate.
Definition Cartesian3DPoint.hpp:39
double z
Z-coordinate.
Definition Cartesian3DPoint.hpp:40
double x
X-coordinate.
Definition Cartesian3DPoint.hpp:38