CGCoordinates::BaseCoordinates Class Reference

Contains common member functions of the X, Y, and Z classes. More...

#include <BaseCoordinates.h>

+ Inheritance diagram for CGCoordinates::BaseCoordinates:

Public Member Functions

virtual Mdouble getWeight ()
 

Static Public Member Functions

static Mdouble getDomainVolume (const Vec3D &min, const Vec3D &max)
 

Detailed Description

Contains common member functions of the X, Y, and Z classes.

As X, Y, and Z share a lot of functionality, the shared functions are stored in this common base class.

Member Function Documentation

◆ getDomainVolume()

Mdouble BaseCoordinates::getDomainVolume ( const Vec3D min,
const Vec3D max 
)
static
31 {
32  return (max.X - min.X) * (max.Y - min.Y) * (max.Z - min.Z);
33 }
Mdouble Y
Definition: Vector.h:66
Mdouble Z
Definition: Vector.h:66
Mdouble X
the vector components
Definition: Vector.h:66

References Vec3D::X, Vec3D::Y, and Vec3D::Z.

◆ getWeight()

Mdouble BaseCoordinates::getWeight ( )
virtual

returns the weight function needed in getMean (required as functions cannot be )

Returns

Reimplemented in CGCoordinates::R.

36 {
37  return 1.0;
38 }

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