Example #1
0
        //---------------------------------------------------------------------
        public static float angle(CDirection left_direction, CDirection right_direction)
        {
            float left  = CLogicUtility.getAngle(left_direction.mDirection);
            float right = CLogicUtility.getAngle(right_direction.mDirection);

            return(_abs(left - right));
        }
Example #2
0
 //---------------------------------------------------------------------
 public static CDirection slerp(CDirection left_direction, CDirection right_direction, float t)
 {
     return new CDirection(EbVector3.lerp(left_direction.mDirection, right_direction.mDirection, t));
 }
Example #3
0
 //---------------------------------------------------------------------
 public static CDirection slerp(CDirection left_direction, CDirection right_direction, float t)
 {
     return(new CDirection(EbVector3.lerp(left_direction.mDirection, right_direction.mDirection, t)));
 }
Example #4
0
 //---------------------------------------------------------------------
 public static float angle(CDirection left_direction, CDirection right_direction)
 {
     float left = CLogicUtility.getAngle(left_direction.mDirection);
     float right = CLogicUtility.getAngle(right_direction.mDirection);
     return _abs(left - right);
 }