From 813ee2a0c97d4c6f4944719b2ae25395929d665b Mon Sep 17 00:00:00 2001 From: RandomityGuy <31925790+RandomityGuy@users.noreply.github.com> Date: Sat, 18 Jan 2025 12:38:14 +0530 Subject: [PATCH] make these inline --- src/Debug.hx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Debug.hx b/src/Debug.hx index a9f53327..11fe2be7 100644 --- a/src/Debug.hx +++ b/src/Debug.hx @@ -68,7 +68,7 @@ class Debug { } } - public static function drawTriangle(p1:Vector, p2:Vector, p3:Vector) { + public static inline function drawTriangle(p1:Vector, p2:Vector, p3:Vector) { if (drawBounds) { _triangles.push(p3.toPoint()); _triangles.push(p2.toPoint()); @@ -76,7 +76,7 @@ class Debug { } } - public static function drawSphere(centre:Vector, radius:Float, lifetime = 0.032) { + public static inline function drawSphere(centre:Vector, radius:Float, lifetime = 0.032) { if (drawBounds) _spheres.push({position: centre.clone(), radius: radius, lifetime: lifetime}); }