module special.geometry_segment
¶
Classes¶
class |
truncated documentation |
---|---|
two points |
Methods¶
method |
truncated documentation |
---|---|
equal |
|
multiplication |
|
constructor |
|
dimension |
|
different |
|
usual |
|
dimension 2 only |
|
switch extremities |
|
the vector only points in the same semi-plan |
|
Documentation¶
Defines a segment
-
class
ensae_teaching_cs.special.geometry_segment.
GeometrySegment
(a, b)¶ Bases :
object
two points
constructor
- Paramètres
a – first extremity
b – second extremity
-
__eq__
(x)¶ equal
-
__hash__
= None¶
-
__imul__
(k)¶ multiplication
-
__init__
(a, b)¶ constructor
- Paramètres
a – first extremity
b – second extremity
-
__len__
()¶ dimension
-
__neq__
(x)¶ different
-
__slots__
= ['_a', '_b']¶
-
__str__
()¶ usual
-
_a
¶
-
_b
¶
-
equation
()¶ dimension 2 only
- Renvoie
a,b,c : ax + by +c
-
equation_eval
(x)¶ - Renvoie
the evaluation of the equation
-
norm2
()¶ - Renvoie
the norm2
-
reverse
()¶ switch extremities
-
topdown
()¶ the vector only points in the same semi-plan
-
vector
()¶ - Renvoie
the directional vector