13 const NUKLEI_UNIQUE_PTR<Color> PlaneProjection::getColor()
const
15 return NUKLEI_UNIQUE_PTR<Color>(
new RGBColor(color_[0]/255.,
20 void PlaneProjection::setColor(
const Color& c)
23 color_[0] = rgb.R()*255;
24 color_[1] = rgb.G()*255;
25 color_[2] = rgb.B()*255;
28 Vector3 PlaneProjection::getCamPosition()
const
31 for (
int i = 0; i < 3; ++i) v[i] = translationVectorData_.at(i);
35 Quaternion PlaneProjection::getCamOrientation()
const
38 for (
int i = 0; i < 3; ++i)
for (
int j = 0; j < 3; ++j)
39 m(i,j) = rotationMatrixData_.at(3*i+j);
40 m = la::normalized(m);
41 return la::quaternionCopy(m);
44 const NUKLEI_UNIQUE_PTR<Color> StereoPlaneProjection::getColor()
const
46 return NUKLEI_UNIQUE_PTR<Color>(
new RGBColor(color_[0]/255.,
51 void StereoPlaneProjection::setColor(
const Color& c)
54 color_[0] = rgb.R()*255;
55 color_[1] = rgb.G()*255;
56 color_[2] = rgb.B()*255;