public override bool Equals(object obj)
        {
            if (ReferenceEquals(obj, null) || GetType() != obj.GetType())
            {
                return(false);
            }
            CoordinateFrame other = (CoordinateFrame)obj;

            return(Axes == other.Axes && RotationOrder == other.RotationOrder);
        }
 public EulerAngles ConvertEulerAngles(CoordinateFrame other, EulerAngles eulerAngles)
 {
     return(Conversions.ConvertEulerAngles(this, other, eulerAngles));
 }
 public Vector3 ConvertPosition(CoordinateFrame other, Vector3 v)
 {
     return(Conversions.ConvertPosition(_axes, other._axes, v));
 }
 // Output a string that visually displays the coordinate axes
 public static string ToCoordinateFrameString(CoordinateFrame cf)
 {
     return(ToCoordinateFrameString(cf.Axes));
 }
 // Output a string that visually displays the coordinate axes
 // with the rotation order
 public static string ToRotationOrderFrameString(CoordinateFrame cf)
 {
     return(ToRotationOrderFrameString(cf.Axes, cf.RotationOrder));
 }
示例#6
0
 public static EulerAngles ConvertEulerAngles(CoordinateFrame cf1, CoordinateFrame cf2, EulerAngles eulerAngles)
 {
     return(ConvertEulerAngles(cf1.Axes, cf1.RotationOrder, cf2.Axes, cf2.RotationOrder, eulerAngles));
 }
 public CoordinateFrameConverter(CoordinateFrame from, CoordinateFrame to)
 {
     _fromFrame = from;
     _toFrame   = to;
 }