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. parameter_from_point(point)# For the line T = A + t(B-A) get the parameter t so that T = point.