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