jared-hughes / DesThree

Desmos bindings for three.js
3 stars 0 forks source link

Add a simple way to get coordinate axes #10

Closed jared-hughes closed 3 years ago

jared-hughes commented 3 years ago

Seems like there should be some easy way to draw coordinate axes and the x-y plane. ArrowHelper with a text sprite and GridHelper should be able to help.

  1. Syntax for toggling this on/off?
  2. Should these scale with the camera zoom or always be a fixed size?

One solution would be to use a single function to answer both of these questions for each component: SetArrowScale(Num s) (and analogous SetGridScale) could toggle off display if s ≤ 0.

jared-hughes commented 3 years ago

Might as well allow AxesHelper, ArrowHelper, and GridHelper to be used as normal functions, not restricted to the origin, which expands their usefulness.

May as well add PolarGridHelper while we're at it.