View& View::setRotation(const glm::vec3 &v) { onSetRotation(v); return *this; }
//-------------------------------------------------------------- void LayerTransform::setRotationZ(float z) {rotation.z = z; onSetRotation();}
//-------------------------------------------------------------- void LayerTransform::setRotationX(float x) {rotation.x = x; onSetRotation();}
//-------------------------------------------------------------- void LayerTransform::setRotationY(float y) {rotation.y = y; onSetRotation();}
//-------------------------------------------------------------- void LayerTransform::setRotation(const ofPoint& p) {rotation.set(p.x, p.y, p.z);onSetRotation();}