INNER CODE UNIT · Python

delta

mosra/magnum-examples · src/python/magnum-primitives.py:86

        delta = 1.0*event.relative_position/Vector2(self.window_size)
        self._transformation = (
            Matrix4.rotation_x(Rad(delta.y))@
            self._transformation@
            Matrix4.rotation_y(Rad(delta.x)))
        self.redraw()

exit(PrimitivesExample().exec())

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…