summaryrefslogtreecommitdiff
path: root/chickadee/math
Commit message (Collapse)AuthorAgeFilesLines
* math: vector: Fix vec2-cross.David Thompson2021-10-021-2/+2
|
* Move data structure modules into new (chickadee data ...) namespace.David Thompson2021-10-012-485/+0
|
* math: rect: Fix record type printer.David Thompson2021-10-011-6/+6
|
* math: rect: Add custom record type printer.David Thompson2021-09-281-0/+8
|
* math: vector: Deprecate #v syntax and remove uses of it.David Thompson2021-09-212-1/+3
|
* math: matrix: Remove references to old vec3-dot-product procedure.David Thompson2021-09-081-3/+3
| | | | Oopsies.
* math: vector: Rename dot product procedures.David Thompson2021-09-081-4/+4
|
* math: matrix: Add matrix3-inverse! and matrix3-inverse.David Thompson2021-09-081-0/+47
|
* math: matrix: Add in-place orthographic/perspective projection procedures.David Thompson2021-05-131-10/+24
|
* math: matrix: Add look-at/look-at! procedures.David Thompson2021-05-121-0/+23
|
* math: vector: Minor style tweaks.David Thompson2021-05-121-6/+7
|
* math: vector: Fix vec3-copy!David Thompson2021-05-121-2/+4
|
* math: matrix: Fix implementation of matrix4-rotate!David Thompson2021-05-101-15/+21
|
* math: quaternion: Add rotation->quaternion procedure.David Thompson2021-05-101-1/+17
|
* math: matrix: Add vec3 support to matrix4-scale!David Thompson2021-05-051-5/+14
|
* math: rect: Fix make-null-rect so all values are 0 instead of garbage.David Thompson2021-04-071-1/+1
|
* math: matrix: Add procedures to extract translation from 4x4 matrix.David Thompson2020-12-161-1/+13
|
* math: matrix: Rename transform! to matrix4-transform!David Thompson2020-12-161-8/+8
|
* math: grid: Add grid-cell-fold and grid-item-fold procedures.David Thompson2020-11-191-1/+15
|
* math: quaternion: Remove calls to deleted square procedure.David Thompson2020-11-181-5/+5
| | | | Oops.
* math: vector: Add vec2-cross procedure.David Thompson2020-11-131-0/+5
|
* math: rect: Fix rect-union and rect-clip.David Thompson2020-11-131-4/+4
|
* math: rect: Fix rect-inflate.David Thompson2020-10-151-2/+3
|
* math: matrix: Add 3x3 matrix.David Thompson2020-10-151-106/+345
|
* math: rect: Export make-null-rect.David Thompson2020-10-151-0/+1
|
* math: rect: Move functional procedures after the imperative ones.David Thompson2020-10-151-56/+61
| | | | | The functional procedures weren't working because of a quirk with Guile's handling of the top level.
* math: vector: Add origin argument to vec2/polar.David Thompson2020-10-131-3/+4
|
* math: vector: Add vec2= and vec3= procedures.David Thompson2020-10-131-0/+11
|
* math: rect: Fix rect-union when one of the rectangles has no area.David Thompson2020-10-131-8/+18
| | | | | Rectangles that have no area shouldn't be considered as part of the union.
* math: Delete square procedure.David Thompson2020-10-111-4/+4
| | | | It's just not useful.
* math: grid: Export grid-rect-ref.David Thompson2020-10-111-0/+1
|
* math: vector: Add vec3 cross product procedures.David Thompson2019-10-111-0/+16
|
* math: vector: Add vec3 arithmetic procedures.David Thompson2019-10-111-0/+21
|
* math: matrix: Add procedures for X and Y axis rotations.David Thompson2019-10-111-0/+30
|
* math: matrix: Add transform-x and transform-y procedures.David Thompson2019-01-061-8/+17
| | | | * chickadee/math/matrix.scm (transform-x, transform-y): New procedures.
* math: rect: Add make-rect alias.David Thompson2018-12-131-2/+4
| | | | * chickadee/math/rect.scm (rect): New procedure.
* math: vector: Add set-vec2! and set-vec3! procedures.David Thompson2018-12-131-5/+11
| | | | | * chickadee/math/vector.scm (set-vec2!, set-vec3!): New procedures. * doc/api.texi (Vectors): Document them.
* math: grid: Simplify a formula.David Thompson2018-12-091-2/+2
| | | | | * chickadee/math/grid.scm (slide): Simplify formula for setting new goal coordinates.
* math: grid: A couple more optimizations.David Thompson2018-12-021-4/+3
| | | | | | | * chickadee/math/grid.scm (make-grid): Set a high minimum bucket size to avoid rehashing. (grid-move): Use memoized inexact->exact procedure. Fix return value of check procedure being ignored.
* math: grid: Refactor to improve performance a little bit.David Thompson2018-12-021-173/+163
| | | | | | | | There's still a lot of work needed to make the collision grid scale to any reasonable number of moving objects, but this is a first step. * chickadee/math/grid.scm: Big ol' refactor that I can't be bothered to list all the changes for.
* Move pathfinding module to math directory.David Thompson2018-10-031-0/+77
|
* math: grid: Fix docstring in grid-move.David Thompson2018-10-021-1/+1
|
* math: matrix: Fix a few docstrings.David Thompson2018-09-271-3/+3
| | | | * chickadee/math/matrix.scm: Fix mistakes in docstrings.
* math: vector: Fix vec2-normalize and vec3-normalize.David Thompson2018-09-101-12/+12
| | | | | | * chickadee/math/vector.scm: Move vec2-normalize and vec3-normalize below the definitions of vec2-normalize! and vec3-normalize! so that inlining doesn't screw things up.
* math: vector: Add vec2*, vec2+, and vec2- procedures.David Thompson2018-09-101-0/+21
| | | | * chickadee/math/vector.scm (vec2*, vec2+, vec2-): New procedures.
* math: Add grid module.David Thompson2018-09-021-0/+404
| | | | | | | * chickadee/math/grid.scm: New file. * examples/grid.scm: New file. * Makefile.am (SOURCES): Add grid module. (EXTRA_DIST): Add grid example.
* Add bezier curve module.David Thompson2018-08-291-0/+82
| | | | | * chickadee/math/bezier.scm: New file. * Makefile.am (SOURCES): Add it.
* math: vector: Add read syntax.David Thompson2018-08-231-0/+26
| | | | | | | | | * chickadee/math/vector.scm (read-vec): New procedure. Extend reader. * examples/lines.scm: Use new vector read syntax. * examples/nine-patch.scm: Ditto. * examples/sprite.scm: Ditto. * examples/text.scm: Ditto. * examples/tiled.scm: Ditto.
* math: matrix: Fix typos in matrix4-2d-transform!David Thompson2018-01-171-2/+2
| | | | * chickadee/math/matrix.scm (matrix4-2d-transform!): Fix bad typos!
* math: matrix: Add matrix4-2d-transform! procedure.David Thompson2018-01-171-0/+42
| | | | * chickadee/math/matrix.scm (matrix4-2d-transform): New procedure.