예제 #1
0
 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;
 }
예제 #2
0
 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;
 }
예제 #3
0
 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;
 }