Segment#
- class Segment(A, B)#
Bases:
Line
- __init__(A, B)#
Methods
__init__
(A, B)length
()parameter_from_point
(point)For the line T = A + t(B-A) get the parameter t so that T = point.
sample
(n)Split a segment into n evenly spaced complex points from A to B (inclusive).
- parameter_from_point(point)#
For the line T = A + t(B-A) get the parameter t so that T = point.
- sample(n)#
Split a segment into n evenly spaced complex points from A to B (inclusive).