We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 575d662 commit 3663d70Copy full SHA for 3663d70
arcade/camera/camera_2d.py
@@ -482,6 +482,10 @@ def point_in_view(self, point: Point2) -> bool:
482
Take a 2D point in the world, and return whether the point is inside the
483
visible area of the camera.
484
"""
485
+ # This is unwrapped from standard Vec2 operations,
486
+ # The construction and garbage collection of the vectors would
487
+ # increase this method's cost by ~4x
488
+
489
pos = self.position
490
diff = point[0] - pos[0], point[1] - pos[1]
491
0 commit comments