Fix math docstrings and rename symbol
This commit is contained in:
@@ -9,7 +9,7 @@
|
|||||||
; static methods/fields
|
; static methods/fields
|
||||||
|
|
||||||
(defmacro geometry!
|
(defmacro geometry!
|
||||||
"Calls a single method on [GeometryUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/GeometryUtils.html)"
|
"Calls a single static method on [GeometryUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/GeometryUtils.html)"
|
||||||
[k & options]
|
[k & options]
|
||||||
`(~(u/gdx-field :math :GeometryUtils (u/key->camel k)) ~@options))
|
`(~(u/gdx-field :math :GeometryUtils (u/key->camel k)) ~@options))
|
||||||
|
|
||||||
@@ -21,14 +21,14 @@
|
|||||||
`~(u/gdx-class :math :Interpolation (u/key->pascal k)))
|
`~(u/gdx-class :math :Interpolation (u/key->pascal k)))
|
||||||
|
|
||||||
(defmacro intersector!
|
(defmacro intersector!
|
||||||
"Calls a single method on [Intersector](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/Intersector.html)
|
"Calls a single static method on [Intersector](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/Intersector.html)
|
||||||
|
|
||||||
(intersector! :is-point-in-triangle 0 1 0 0 1 2 3 0)"
|
(intersector! :is-point-in-triangle 0 1 0 0 1 2 3 0)"
|
||||||
[k & options]
|
[k & options]
|
||||||
`(~(u/gdx-field :math :Intersector (u/key->camel k)) ~@options))
|
`(~(u/gdx-field :math :Intersector (u/key->camel k)) ~@options))
|
||||||
|
|
||||||
(defmacro math!
|
(defmacro math!
|
||||||
"Calls a single method on [MathUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/MathUtils.html)
|
"Calls a single static method on [MathUtils](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/MathUtils.html)
|
||||||
|
|
||||||
(math! :ceil 0.1)"
|
(math! :ceil 0.1)"
|
||||||
[k & options]
|
[k & options]
|
||||||
@@ -62,18 +62,18 @@
|
|||||||
|
|
||||||
; bresenham2
|
; bresenham2
|
||||||
|
|
||||||
(defn bresenham2*
|
(defn bresenham-2*
|
||||||
"The function version of `bresenham2`"
|
"The function version of `bresenham-2`"
|
||||||
[]
|
[]
|
||||||
(Bresenham2.))
|
(Bresenham2.))
|
||||||
|
|
||||||
(defmacro bresenham2
|
(defmacro bresenham-2
|
||||||
"Returns a [Bresenham2](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/Bresenham2.html)"
|
"Returns a [Bresenham2](http://libgdx.badlogicgames.com/nightlies/docs/api/com/badlogic/gdx/math/Bresenham2.html)"
|
||||||
[& options]
|
[& options]
|
||||||
`(u/calls! ^Bresenham2 (bresenham2*) ~@options))
|
`(u/calls! ^Bresenham2 (bresenham-2*) ~@options))
|
||||||
|
|
||||||
(defmacro bresenham2!
|
(defmacro bresenham-2!
|
||||||
"Calls a single method on a `bresenham2`"
|
"Calls a single method on a `bresenham-2`"
|
||||||
[object k & options]
|
[object k & options]
|
||||||
`(u/call! ^Bresenham2 ~object ~k ~@options))
|
`(u/call! ^Bresenham2 ~object ~k ~@options))
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user