X-Git-Url: https://scm.cri.ensmp.fr/git/linpy.git/blobdiff_plain/98936866ae400d45b7b74f7ba0d04c66ace0424f..dc449ca80b432de202188a4300ef990abeb968a1:/doc/geometry.rst~ diff --git a/doc/geometry.rst~ b/doc/geometry.rst~ deleted file mode 100644 index 1a36921..0000000 --- a/doc/geometry.rst~ +++ /dev/null @@ -1,80 +0,0 @@ -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`` if a point is the origin. - - .. py:method:: __eq__(self, other) - - Compares two Points for equality. - - .. py:method:: __add__(self, other) - - Adds a Point to a Vector and returns the result as a Point. - - .. py:method:: __sub__(self, other) - - Returns the difference between two Points as a Vector. - - .. py:method:: aspolyhedon(self) - - Returns a Point as a polyhedron. - - -.. py:class:: Vector - -This class represents displacements in space. - - .. py:method:: __eq__(self, other) - - Compares two Vectors for equality. - - .. py:method:: __add__(self, other) - - Adds either a Point or Vector to a Vector. The resulting sum is returned as the same structure *other* is. - - .. py:method:: __sub__(self, other) - - Subtract a Point or Vector from a Vector. The resulting difference is returned in the same form as *other*. - - .. py:method:: __mul__(self, other) - - Multiples a Vector by a scalar value and returns the result as a Vector. - - .. py:method:: __neg__(self) - - Negates a Vector. - - .. py:method:: norm(self) - - Normalizes a Vector. - - - .. py:method:: isnull(self) - - Tests whether a Vector is null. - - .. 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. -