1
0
Fork 0
mirror of https://github.com/Ellpeck/MLEM.git synced 2024-11-22 12:58:33 +01:00

rename this so that it can actually be used :V

This commit is contained in:
Ellpeck 2019-08-07 01:28:56 +02:00
parent 8e46809d61
commit 70c910bb70

View file

@ -5,7 +5,7 @@ using Camera = MLEM.Cameras.Camera;
namespace MLEM.Extended.Extensions {
public static class CameraExtensions {
public static RectangleF GetVisibleArea(this Camera camera) {
public static RectangleF GetVisibleRectangle(this Camera camera) {
var start = camera.ToWorldPos(Vector2.Zero);
return new RectangleF(start, camera.ToWorldPos(new Vector2(camera.Viewport.Width, camera.Viewport.Height) - start));
}