mirror of
https://github.com/Ellpeck/MLEM.git
synced 2024-12-24 01:09:23 +01:00
rename this so that it can actually be used :V
This commit is contained in:
parent
8e46809d61
commit
70c910bb70
1 changed files with 1 additions and 1 deletions
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue