예제 #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);
        }
예제 #2
0
 public static float GetYAtEndOfRotatedLineByOrigin(float y, float lineLength, float angleDegrees)
 {
     return(y + TrigLUT.SinDeg(angleDegrees) * lineLength);
 }