module special.geometry_point
¶
Classes¶
class | truncated documentation |
---|---|
GeometryException |
raises when an issue arises with class GeometryPoint |
GeometryPoint |
one point |
Methods¶
method | truncated documentation |
---|---|
__add__ |
addition |
__cmp__ |
comparison |
__eq__ |
is equal |
__iadd__ |
addition |
__imul__ |
multiplication by a scalar |
__init__ |
constructor |
__len__ |
returns the dimension |
__lt__ |
inferior |
__mul__ |
multiplication by a scalar |
__neq__ |
is different |
__repr__ |
eval(__repr__) should return the same object |
__str__ |
converts into string |
__sub__ |
substraction |
angle |
return the angle |
cossin |
return the cos, sin of a vector (dimension 2 only) |
norm2 |
return the norm |
product |
vectoriel product, dimension 2 only |
scalar |
scalar product |
Documentation¶
Defines a point in N-dimension
-
exception
ensae_teaching_cs.special.geometry_point.
GeometryException
[source]¶ Bases :
Exception
raises when an issue arises with class GeometryPoint
-
class
ensae_teaching_cs.special.geometry_point.
GeometryPoint
(*x)[source]¶ Bases :
object
one point
constructor
Paramètres: x – is a vector -
__hash__
= None¶
-
__slots__
= ['_x']¶
-
_x
¶
-