mirror of
https://github.com/RandomityGuy/MBHaxe.git
synced 2026-04-27 13:11:42 +00:00
make these inline
This commit is contained in:
parent
da9c9f350f
commit
ec53698b07
1 changed files with 2 additions and 2 deletions
|
|
@ -63,7 +63,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)
|
if (!drawBounds)
|
||||||
return;
|
return;
|
||||||
_triangles.push(p3.toPoint());
|
_triangles.push(p3.toPoint());
|
||||||
|
|
@ -71,7 +71,7 @@ class Debug {
|
||||||
_triangles.push(p1.toPoint());
|
_triangles.push(p1.toPoint());
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function drawSphere(centre:Vector, radius:Float) {
|
public static inline function drawSphere(centre:Vector, radius:Float) {
|
||||||
if (!drawBounds)
|
if (!drawBounds)
|
||||||
return;
|
return;
|
||||||
_spheres.push({position: centre.clone(), radius: radius});
|
_spheres.push({position: centre.clone(), radius: radius});
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue