Recast  1
Game with custom magic
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Pages
Public Member Functions | Protected Attributes | List of all members
Parallelepiped Struct Reference

#include <Parallelepiped.hpp>

Collaboration diagram for Parallelepiped:
Collaboration graph

Public Member Functions

 Parallelepiped (Coord minX, Coord maxX, Coord minY, Coord maxY, Coord minZ, Coord maxZ)
 
 Parallelepiped (Size sizeX, Size sizeY, Size sizeZ)
 
Coord minX () const noexcept
 
Coord maxX () const noexcept
 
Coord minY () const noexcept
 
Coord maxY () const noexcept
 
Coord minZ () const noexcept
 
Coord maxZ () const noexcept
 
Size sizeX () const noexcept
 
Size sizeY () const noexcept
 
Size sizeZ () const noexcept
 
Size volume () const noexcept
 
bool isSameSize (const Parallelepiped &other) const noexcept
 
bool operator== (const Parallelepiped &other) const noexcept
 
bool operator!= (const Parallelepiped &other) const noexcept
 

Protected Attributes

Coord _minX
 
Coord _maxX
 
Coord _minY
 
Coord _maxY
 
Coord _minZ
 
Coord _maxZ
 
Size _sizeX
 
Size _sizeY
 
Size _sizeZ
 

Detailed Description

Type. Represents volume in three-dimensional space.

Constructor & Destructor Documentation

Parallelepiped::Parallelepiped ( Coord  minX,
Coord  maxX,
Coord  minY,
Coord  maxY,
Coord  minZ,
Coord  maxZ 
)
inline
Parallelepiped::Parallelepiped ( Size  sizeX,
Size  sizeY,
Size  sizeZ 
)
inline

Member Function Documentation

bool Parallelepiped::isSameSize ( const Parallelepiped other) const
inlinenoexcept
Parameters
otherParallelepiped to compare with.
Returns
True if sizes of this parallepiped and other parallepiped are equal.
Coord Parallelepiped::maxX ( ) const
inlinenoexcept
Returns
Maximum possible x coordinate.

Here is the caller graph for this function:

Coord Parallelepiped::maxY ( ) const
inlinenoexcept
Returns
Maximum possible y coordinate.

Here is the caller graph for this function:

Coord Parallelepiped::maxZ ( ) const
inlinenoexcept
Returns
Maximum possible z coordinate.

Here is the caller graph for this function:

Coord Parallelepiped::minX ( ) const
inlinenoexcept
Returns
Minimum possible x coordinate.

Here is the caller graph for this function:

Coord Parallelepiped::minY ( ) const
inlinenoexcept
Returns
Minimum possible y coordinate.

Here is the caller graph for this function:

Coord Parallelepiped::minZ ( ) const
inlinenoexcept
Returns
Minimum possible z coordinate.

Here is the caller graph for this function:

bool Parallelepiped::operator!= ( const Parallelepiped other) const
inlinenoexcept
bool Parallelepiped::operator== ( const Parallelepiped other) const
inlinenoexcept
Size Parallelepiped::sizeX ( ) const
inlinenoexcept
Returns
Size of the world by x axis;

Here is the caller graph for this function:

Size Parallelepiped::sizeY ( ) const
inlinenoexcept
Returns
Size of the world by y axis;

Here is the caller graph for this function:

Size Parallelepiped::sizeZ ( ) const
inlinenoexcept
Returns
Size of the world by z axis;

Here is the caller graph for this function:

Size Parallelepiped::volume ( ) const
inlinenoexcept
Returns
Count of points inside.

Member Data Documentation

Coord Parallelepiped::_maxX
protected
Coord Parallelepiped::_maxY
protected
Coord Parallelepiped::_maxZ
protected
Coord Parallelepiped::_minX
protected
Coord Parallelepiped::_minY
protected
Coord Parallelepiped::_minZ
protected
Size Parallelepiped::_sizeX
protected
Size Parallelepiped::_sizeY
protected
Size Parallelepiped::_sizeZ
protected

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