X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/blobdiff_plain/82e100a9d5e7db532fda649849dc784148e55069..25ce908cffca380f930182a77c1e5a4491042a1c:/doc/geometry.rst diff --git a/doc/geometry.rst b/doc/geometry.rst new file mode 100644 index 0000000..224fb3a --- /dev/null +++ b/doc/geometry.rst @@ -0,0 +1,38 @@ +Geometry Module +=============== + +The geometry module is used to obtain information about the points and vertices of a ployhedra. + +.. py:class:: Points + +This class represents points in space. + + .. py:method:: isorigin(self) + + Return true is given point is the origin. + + .. py:method:: + +.. py:class:: Vector + +This class represents displacements in space. + + .. py:method:: angle(self, other) + + Retrieve the angle required to rotate the vector into the vector passed + in argument. The result is an angle in radians, ranging between -pi and + pi. + + .. py:method:: cross(self, other) + + Calculate the cross product of two Vector3D structures. + + .. py:method:: dot(self, other) + + Calculate the dot product of two vectors. + + .. py:method:: __trudiv__(self, other) + + Divide the vector by the specified scalar and returns the result as a + vector. +