Skip to content

Instantly share code, notes, and snippets.

@FedericoV
Created February 25, 2015 14:22
Show Gist options
  • Select an option

  • Save FedericoV/2eac0090d5cfeb6b33be to your computer and use it in GitHub Desktop.

Select an option

Save FedericoV/2eac0090d5cfeb6b33be to your computer and use it in GitHub Desktop.
self.rotation = rotation_matrix(np.array([0,0,1]), self.model.stem_rotation)
self.axis = self.__get_axis()
self.rotation = np.dot(rotation_matrix(self.axis, self.model.tree_rotation), self.rotation)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment