mirror of https://github.com/AxioDL/zeus.git
20 lines
318 B
C++
20 lines
318 B
C++
|
#ifndef CUNITVECTOR_HPP
|
||
|
#define CUNITVECTOR_HPP
|
||
|
|
||
|
#include "CVector3f.hpp"
|
||
|
|
||
|
class ZE_ALIGN(16) CUnitVector3f : public CVector3f
|
||
|
{
|
||
|
public:
|
||
|
ZE_DECLARE_ALIGNED_ALLOCATOR();
|
||
|
|
||
|
CUnitVector3f(const CVector3f& vec)
|
||
|
: CVector3f(vec)
|
||
|
{
|
||
|
if (canBeNormalized())
|
||
|
normalize();
|
||
|
}
|
||
|
};
|
||
|
|
||
|
#endif
|