i have a vector2d class and a position2d class which stores the position as a vector2d drifter cell called "value". the initial value should be a zero vector and then a vector2d should be added every time the translation value of a mover object is changed.
my question is, how do i define incf and decf functions for position2d.value which the drifter cell depends on?
or maybe there is some other way to define a value for initialization time and use (setf (vector-add .cache translation)) on change?
my question is, how do i define incf and decf functions for position2d.value which the drifter cell depends on?
or maybe there is some other way to define a value for initialization time and use (setf (vector-add .cache translation)) on change?
(object-pos (make-instance 'position2d
:value (cells:c... ((vector2d-0)) (translation2d-of object-mover))
))