wfmath
1.0.3
A math library for the Worldforge system.
|
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 Shape & | getShape () const |
Gets the zeroed shape. More... | |
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.
|
inlineexplicit |
|
inline |
Gets the zeroed shape.
Definition at line 53 of file zero.h.
Referenced by WFMath::Point< 2 >::ZERO(), and WFMath::Vector< 3 >::ZERO().