4 The geometry module is used to obtain information about the points and vertices of a ployhedra.
8 This class represents points in space.
10 .. py:method:: isorigin(self)
12 Return ``True`` if a point is the origin.
14 .. py:method:: __eq__(self, other)
16 Compares two Points for equality.
18 .. py:method:: __add__(self, other)
20 Adds a Point to a Vector and returns the result as a Point.
22 .. py:method:: __sub__(self, other)
24 Returns the difference between two Points as a Vector.
26 .. py:method:: aspolyhedon(self)
28 Returns a Point as a polyhedron.
33 This class represents displacements in space.
35 .. py:method:: __eq__(self, other)
37 Compares two Vectors for equality.
39 .. py:method:: __add__(self, other)
41 Adds either a Point or Vector to a Vector. The resulting sum is returned as the same structure *other* is.
43 .. py:method:: __sub__(self, other)
45 Subtract a Point or Vector from a Vector. The resulting difference is returned in the same form as *other*.
47 .. py:method:: __mul__(self, other)
49 Multiples a Vector by a scalar value and returns the result as a Vector.
51 .. py:method:: __neg__(self)
55 .. py:method:: norm(self)
60 .. py:method:: isnull(self)
62 Tests whether a Vector is null.
64 .. py:method:: angle(self, other)
66 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
69 .. py:method:: cross(self, other)
71 Calculate the cross product of two Vector3D structures.
73 .. py:method:: dot(self, other)
75 Calculate the dot product of two vectors.
77 .. py:method:: __trudiv__(self, other)
79 Divide the vector by the specified scalar and returns the result as a vector.