public Tuple4 Rotation(ReferenceFrame referenceFrame) { if (ReferenceEquals(referenceFrame, null)) { throw new ArgumentNullException("referenceFrame"); } return(referenceFrame.RotationToWorldSpace(InternalPart.transform.rotation).ToTuple()); }
public static Tuple4 TransformRotation (Tuple4 rotation, ReferenceFrame from, ReferenceFrame to) { CheckReferenceFrames (from, to); return to.RotationFromWorldSpace (from.RotationToWorldSpace (rotation.ToQuaternion ())).ToTuple (); }
/// <summary> /// Update the text. /// </summary> public override void Update() { renderer.enabled = Visible; renderer.transform.position = ReferenceFrame.PositionToWorldSpace(position); renderer.transform.rotation = ReferenceFrame.RotationToWorldSpace(rotation); }
public Tuple4 Rotation(ReferenceFrame referenceFrame) { return(referenceFrame.RotationToWorldSpace(InternalPart.transform.rotation).ToTuple()); }
public Tuple4 Rotation(ReferenceFrame referenceFrame) { return(referenceFrame.RotationToWorldSpace(port.nodeTransform.rotation).ToTuple()); }