# Arc3 (class)¶

Warning : this file has been generated, you shouldn’t edit it

class Arc3(begin=0, end=0, is_trigo_direction=False, label='', init_dict=None)[source]

Half circle define by two points

VERSION = 1
check()

assert that the arc is correct (begin != end)

Parameters: self (Arc3) – An Arc3 object None PointArc3Error – The beginning point and the ending point of an Arc3 can’t be the same
comp_length()

Compute the length of the arc

Parameters: self (Arc3) – An Arc3 object length – length of the arc float
comp_radius()

Compute the radius of the arc

Parameters: self (Arc3) – An Arc3 object radius – radius of the arc float
discretize(nb_point=99)

Return the discretize version of the Arc. Begin and end are always return

Parameters: self (Arc3) – An Arc3 object nb_point (int) – Number of points to add to discretize the arc (Default value = ARC_NPOINT_D) list_point – list of complex coordinate of the points list NbPointArc1DError – nb_point must be an integer >=0
get_begin()

Return the begin point of the arc

Parameters: self (Arc3) – An Arc3 object begin – Begin point of the Arc3 complex
get_center()

Return the center of the arc

Parameters: self (Arc3) – An Arc3 object Zc – Complex coordinates of the center of the Arc3 complex
get_end()

Return the end point of the arc

Parameters: self (Arc3) – An Arc3 object end – Complex coordinates of the end point of the Arc3 complex
get_middle()

Return the point at the middle of the arc

Parameters: self (Arc3) – An Arc3 object Zmid – Complex coordinates of the middle of the Arc3 complex
rotate(angle)

Rotation of the Arc3 of angle

Parameters: self (Arc3) – An Arc3 Object angle (float) – the angle of rotation [rad] None
translate(Zt)

Translate the Arc3 object with

Parameters: self (Arc3) – An Arc3 object Zt (complex) – Complex value for translation None
as_dict()[source]

Convert this objet in a json seriable dict (can be use in __init__)

begin

begin point of the arc

end

end of the arc

is_trigo_direction

Rotation direction of the ard