def matrix3(self, value): # When setting matrix3, orientation should be updated. self._orientation = Orientation(value)
def matrix4(self, value): self._position = Point(value[:3, 3]) self._euler = Orientation(value[:3, :3]).euler self._quaternion = Orientation(value[:3, :3]).quaternion self._matrix3 = Orientation(value[:3, :3]).matrix3
def quaternion(self, value): # When setting quaternion, orientation should be updated. self._orientation = Orientation(value)
def yaw(self, value): # When setting euler, orientation should be updated. self._orientation = Orientation([self.roll, self.pitch, value])
def pitch(self, value): # When setting euler, orientation should be updated. self._orientation = Orientation([self.roll, value, self.yaw])
def euler(self, value): # When setting euler, orientation should be updated. self._orientation = Orientation(value)
def orientation(self, value): self._orientation = Orientation(value)