0

I'm wondering if it is possible to move an object (for example a sphere) with a matrix. I've created a type: Ball and I've added a method:

let translateW (tx, ty) =
    m.Translate(tx, ty)

where m is Drawing2d.Matrix()

on the Paint method I wrote:

let g = e.Graphics      
g.Transform <- m

but I'm not updating a Ball object, I'm just translating the view... how can I move the ball instead?

Mark Seemann
  • 225,310
  • 48
  • 427
  • 736
Levenlol
  • 305
  • 5
  • 17

0 Answers0