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); }