WFMath  1.0.2
Public Member Functions | List of all members
WFMath::ZeroPrimitive< Shape > Class Template Reference

Utility class for providing zero primitives. This class will only work with simple structures such as Vector or Point which provide a m_elem structure. In order for it to access the m_elem structure it must be declared as a friend class of the class it will provide an instance of. More...

#include <zero.h>

Public Member Functions

 ZeroPrimitive (int dim)
 Ctor. An instance of Shape with zero values will be created at construction time. More...
 
const ShapegetShape () const
 Gets the zeroed shape.
 

Detailed Description

template<typename Shape>
class WFMath::ZeroPrimitive< Shape >

Utility class for providing zero primitives. This class will only work with simple structures such as Vector or Point which provide a m_elem structure. In order for it to access the m_elem structure it must be declared as a friend class of the class it will provide an instance of.

Author
Erik Hjortsberg erik@.nosp@m.worl.nosp@m.dforg.nosp@m.e.or.nosp@m.g

Constructor & Destructor Documentation

◆ ZeroPrimitive()

template<typename Shape>
WFMath::ZeroPrimitive< Shape >::ZeroPrimitive ( int  dim)
inline

Ctor. An instance of Shape with zero values will be created at construction time.

Parameters
dimThe dimensions of the shape.

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