World Ocean Simulation System (WOSS) library
woss::CoordZ::CartCoords Class Reference

Class that represents cartesian coordinates. More...

#include <coordinates-definitions.h>

Collaboration diagram for woss::CoordZ::CartCoords:
Collaboration graph

Public Member Functions

constexpr CartCoords ()
constexpr CartCoords (double in_x, double in_y, double in_z, CoordZSpheroidType in_type)
constexpr double getX () const
constexpr double getY () const
constexpr double getZ () const
constexpr CoordZSpheroidType getType () const

Protected Attributes

double x
double y
 X-asis value in meters.
double z
 Y-asis value in meters.
CoordZSpheroidType type
 Z-asis value in meters.

Friends

std::ostream & operator<< (std::ostream &os, const CartCoords &instance)

Detailed Description

Class that represents cartesian coordinates.

Class that represents cartesian coordinates

Constructor & Destructor Documentation

◆ CartCoords() [1/2]

woss::CoordZ::CartCoords::CartCoords ( )
inlineconstexpr

CartCoords default constructor.

References type, x, y, and z.

◆ CartCoords() [2/2]

woss::CoordZ::CartCoords::CartCoords ( double in_x,
double in_y,
double in_z,
CoordZSpheroidType in_type )
inlineconstexpr

Coord constructor.

Parameters
in_xnumber of meters along the X axis
in_ynumber of meters along the X axis
in_znumber of meters along the X axis
in_typeSpheroid model that has been used

References type, x, y, and z.

Member Function Documentation

◆ getType()

CoordZSpheroidType woss::CoordZ::CartCoords::getType ( ) const
inlineconstexpr

Returns the CoordZSpheroidType used for computation

Returns
CoordZSpheroidType spheroid model

References type.

Referenced by woss::CoordZ::getCoordZFromCartesianCoords().

◆ getX()

double woss::CoordZ::CartCoords::getX ( ) const
inlineconstexpr

◆ getY()

double woss::CoordZ::CartCoords::getY ( ) const
inlineconstexpr

◆ getZ()

double woss::CoordZ::CartCoords::getZ ( ) const
inlineconstexpr

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const CartCoords & instance )
friend

<< operator

Parameters
osleft operand ostream reference
instanceright operand const CartCoords reference
Returns
os reference after the operation

References type, x, y, and z.

Member Data Documentation

◆ type

CoordZSpheroidType woss::CoordZ::CartCoords::type
protected

Z-asis value in meters.

Referenced by CartCoords(), CartCoords(), getType(), and operator<<.

◆ x

double woss::CoordZ::CartCoords::x
protected

Referenced by CartCoords(), CartCoords(), getX(), and operator<<.

◆ y

double woss::CoordZ::CartCoords::y
protected

X-asis value in meters.

Referenced by CartCoords(), CartCoords(), getY(), and operator<<.

◆ z

double woss::CoordZ::CartCoords::z
protected

Y-asis value in meters.

Referenced by CartCoords(), CartCoords(), getZ(), and operator<<.


The documentation for this class was generated from the following file: