public static float GetWallAngle(this Vector2 vector, WallData wall) { var angle = Vector2.SignedAngle(vector, wall.GetVector()); if (angle < 0) { angle += 360f; } return(angle); }
public static float GetWallAngle(this Vector2 vector, WallData wall) { var angle = Vector2.SignedAngle(vector, wall.GetVector()); if (angle < 0) { angle += 360f; } return(angle); }