private void processChangeVertexRotationCommand(Command command) { var parameters = command.GetParameters(); var verticesDictionary = graph_.__getVerticesDictionary(); var vertex = verticesDictionary.Find(FullID.FromString(parameters[0])); if (vertex == null) { return; } var rotation = new Point4D( double.Parse(parameters[1]), double.Parse(parameters[2]), double.Parse(parameters[3]), double.Parse(parameters[4])); vertex.__setRotation(rotation); graph_.__raiseVertexRotationChangedEvent(vertex); }
internal void __changeRotation(Point4D quaternion) { this.quaternionRotation_ = quaternion; }
public void ChangeRotation(Point4D quaternion) { __changeRotation(quaternion); graph_.__getCommandSender().__sendChangeCameraRotationCommand(quaternion); }
internal Camera(Graph graph) { graph_ = graph; position_ = new Point3D(0, 0, 0); quaternionRotation_ = new Point4D(0, 0, 0, 0); }
internal void __setRotation(Point4D rotation) { this.rotation_ = rotation; }
public void SetRotation(Point4D rotation) { __setRotation(rotation); graph_.__getCommandSender().__sendChangeVertexRotationCommand(this); }