Example #1
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="rotation"></param>
        /// <returns></returns>
        public bool Set(AxisAngle3d rotation)
        {
            if (rotation.IsValid)
            {
                SetImpl(rotation.Axis, rotation.CosAngle, rotation.SinAngle);
                return(true);
            }

            return(false);
        }
Example #2
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="rotation"></param>
 public void Set(AxisAngle3d rotation)
 {
     SetImpl(rotation.Axis, rotation.Angle);
 }
Example #3
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="rotation"></param>
 public Quaterniond(AxisAngle3d rotation)
     : this()
 {
     Set(rotation);
 }
Example #4
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="rotation"></param>
 /// <param name="point"></param>
 /// <returns></returns>
 public static Orient3d CreateRotationAboutPoint(AxisAngle3d rotation, Vector3d point)
 {
     throw new NotImplementedException();
 }
Example #5
0
 /// <summary>
 ///
 /// </summary>
 /// <param name="other"></param>
 /// <param name="epsilon"></param>
 /// <returns></returns>
 public bool ApproxEquals(AxisAngle3d other, double epsilon = D.ZeroTolerance)
 {
     return
         (SlurMath.ApproxEquals(_angle, other._angle, epsilon) &&
          _axis.ApproxEquals(other._axis, epsilon));
 }
Example #6
0
 /// <summary>
 /// Applies the given rotation to the axis of this rotation.
 /// </summary>
 /// <param name="rotation"></param>
 public void RotateAxis(AxisAngle3d rotation)
 {
     _axis = rotation.Apply(_axis);
 }
Example #7
0
 /// <summary>
 /// Applies the given rotation to this object.
 /// </summary>
 /// <param name="rotation"></param>
 public void Rotate(AxisAngle3d rotation)
 {
     SetOrthoXY(rotation.Apply(_x), rotation.Apply(_y));
 }
Example #8
0
 /// <summary>
 ///
 /// </summary>
 public OrthoBasis3d(AxisAngle3d rotation)
     : this()
 {
     Set(rotation);
 }