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); }
public static float GetYAtEndOfRotatedLineByOrigin(float y, float lineLength, float angleDegrees) { return(y + TrigLUT.SinDeg(angleDegrees) * lineLength); }
public static float GetXAtEndOfRotatedLineByOrigin(float x, float lineLength, float angleDegrees) { return(x + TrigLUT.CosDeg(angleDegrees) * lineLength); }