...import order
This commit is contained in:
parent
d2b3ccb745
commit
83c0a2168a
2 changed files with 7 additions and 9 deletions
|
|
@ -1,8 +1,3 @@
|
||||||
import "math/vector" for Vector
|
|
||||||
import "luxe: math" for Math
|
|
||||||
import "math/repVal" for RepVal
|
|
||||||
import "math/Util" for Util
|
|
||||||
|
|
||||||
class M{
|
class M{
|
||||||
static inv_lerp(from, to, value){
|
static inv_lerp(from, to, value){
|
||||||
//if the range are numbers, we assume the interpolation value is too
|
//if the range are numbers, we assume the interpolation value is too
|
||||||
|
|
@ -98,4 +93,9 @@ class M{
|
||||||
static length(vector){
|
static length(vector){
|
||||||
return sqr_length(vector).sqrt
|
return sqr_length(vector).sqrt
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import "math/vector" for Vector
|
||||||
|
import "luxe: math" for Math
|
||||||
|
import "math/repVal" for RepVal
|
||||||
|
import "math/Util" for Util
|
||||||
|
|
@ -1,6 +1,3 @@
|
||||||
import "math/vector" for Vector
|
|
||||||
//import M at end of file
|
|
||||||
|
|
||||||
class AABB{
|
class AABB{
|
||||||
x{_x}
|
x{_x}
|
||||||
y{_y}
|
y{_y}
|
||||||
|
|
@ -100,4 +97,5 @@ class AABB{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
import "math/vector" for Vector
|
||||||
import "math/math" for M
|
import "math/math" for M
|
||||||
Loading…
Reference in a new issue