UNICODE support and fixed a bug where top level imports did noit work
This commit is contained in:
+8
-4
@@ -1,17 +1,21 @@
|
||||
(define-module math
|
||||
:imports ("oo.slime")
|
||||
:exports (pi abs sqrt make-vector3)
|
||||
:exports (pi tau abs sqrt make-vector3)
|
||||
|
||||
(define pi
|
||||
:doc "Tha famous circle constant."
|
||||
"The famous circle constant."
|
||||
3.14159265)
|
||||
|
||||
(define tau
|
||||
"The second famous circle constant."
|
||||
(* 2 pi))
|
||||
|
||||
(define (abs x)
|
||||
:doc "Accepts one argument and returns the absoulte value of it"
|
||||
"Accepts one argument and returns the absoulte value of it"
|
||||
(if (> x 0) x (- x)))
|
||||
|
||||
(define (sqrt x)
|
||||
:doc "Accepts one argument and returns the square root of it"
|
||||
"Accepts one argument and returns the square root of it"
|
||||
(** x 0.5))
|
||||
|
||||
(define-class (vector3 x y z)
|
||||
|
||||
Reference in New Issue
Block a user