Example #1
0
        public static float GetRotatedY(float currentX, float currentY, float pivotX, float pivotY, float angleDegrees)
        {
            float x  = currentX - pivotX;
            float y  = currentY - pivotY;
            float yr = (x * TrigLUT.SinDeg(angleDegrees)) + (y * TrigLUT.CosDeg(angleDegrees));

            return(yr + pivotY);
        }
Example #2
0
 public static float GetXAtEndOfRotatedLineByOrigin(float x, float lineLength, float angleDegrees)
 {
     return(x + TrigLUT.CosDeg(angleDegrees) * lineLength);
 }