Ticket #12 (closed enhancement: fixed)

Opened 6 years ago

Last modified 6 years ago

instances of Transform for Geometry

Reported by: garious Owned by: garious
Priority: minor Milestone:
Version: Keywords:
Cc:

Description

After importing the Reactive-FieldTrip? adapter, the user should be able to write this:

spinningTorusPair :: Double -> Behavior Geometry3 spinningTorusPair sz = uscale3 sz *% spinningG torusPair

Instead of this:

spinningTorusPair :: Double -> Behavior Geometry3 spinningTorusPair sz = (uscale3 sz *%) <$> spinningG torusPair

Conal says this is a static transformation of dynamic geometry, and that it would also be useful to have instances for dynamic transformation of static geometry and dynamic transformation of dynamic geometry. And the corresponding three additional instances for 2D geometry. 6 instances total.

-- static-static (works as-is) uscale3 sz *% torusPair

-- static-dynamic (needs instance of Transform) uscale3 sz *% spinningG torusPair

-- dynamic-static (needs instance of Transform) fmap uscale3 time *% torusPair

-- dynamic-dynamic (needs instance of Transform) fmap uscale3 time *% spinningG torusPair

Change History

Changed 6 years ago by garious

  • type changed from defect to enhancement

Changed 6 years ago by garious

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.