Skip to content

About

A repository to hold my extended project qualification (EPQ) written in Rust for visualizing matrices.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

95 Commits

Folders and files

Repository files navigation

matrix-visualizer

For visualizing matrices and transformations in both 2D and 3D.

See the site on: https://hachispin.github.io/matrix-visualizer/

As of 31/10/2026, looks like this:

Screenshot of the program, showing the grid and sidebar

Controls

  • Scroll or pinch to change the magnification (zoom level) of the graph.
  • Drag with the left mouse button to change the graph's orientation.
  • For moving the focus point, type or tap x, y or z. This moves the focus point by a grid square in the specified positive axis. Press with SHIFT or "Reversed" to go in the opposite direction.
  • Enter ~ or tap "Home" to reset the focus point back to the origin, (0, 0, 0).

Note: when entering coordinates or matrix entries, you can enter a comma (,) while typing to go to the next coordinate/entry. This works on mobile as well.


Checklist
  • Implement the grid

    • Decide on what type of camera to use
    • Draw 2D/3D grid lines
    • Add labels (x, y, z), numbers and arrowheads
    • Make the spacing between grid lines based on magnification
    • Allow for a “2D mode” that locks the camera to the x-y plane
  • Make input boxes

    • How should matrices be entered?
    • A “transform” button for matrices (that affects the grid)
    • Different types of boxes (matrix, point, vector, polygon)
    • Consider accessibility?
  • Draw points/vectors that the user enters

    • User should be able to hide them
    • Each drawn point/vector color-coded to its respective input box
    • Enclosed area by a polygon should be shaded
  • Transforming

    • Toggle for whether the grid itself is affected by transformations
    • Should the camera “follow” the transformation?
    • Animated with some easing function

About

A repository to hold my extended project qualification (EPQ) written in Rust for visualizing matrices.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages