public void Translate(OpenGLControl propagateGL, BrettAxes.Axis axes, float amount, out OpenGLControl propagateGLOut) { propagateGL.OpenGL.Translate(amount * BrettAxes.r3(axes)[0], amount * BrettAxes.r3(axes)[1], amount * BrettAxes.r3(axes)[2]); propagateGLOut = propagateGL; }
public void MovePosition(OpenGLControl propagateGL, BrettAxes.Axis axes, out OpenGLControl propagateGLOut) { propagateGL.OpenGL.Translate(BrettAxes.r3(axes)[0], BrettAxes.r3(axes)[1], BrettAxes.r3(axes)[2]); propagateGLOut = propagateGL; }
public void Rotate(OpenGLControl propagateGL, BrettAxes.Axis axes, float amount, out OpenGLControl propagateGLOut) { Rotation = Rotation + amount; propagateGL.OpenGL.Rotate(Rotation, BrettAxes.r3(axes)[0], BrettAxes.r3(axes)[1], BrettAxes.r3(axes)[2]); propagateGLOut = propagateGL; }