25 #ifndef __SYNFIG_STUDIO_DUCK_TRANSFORM_ORIGIN_H
26 #define __SYNFIG_STUDIO_DUCK_TRANSFORM_ORIGIN_H
44 etl::handle<Duck> origin;
45 std::vector<synfig::Vector> positions;
48 Transform_Origin(
const synfig::GUID& guid,
const etl::handle<Duck>& origin):Transform(guid), origin(origin) { }
49 synfig::Vector
perform(
const synfig::Vector& x)
const {
return x+origin->get_point(); }
50 synfig::Vector
unperform(
const synfig::Vector& x)
const {
return x-origin->get_point(); }