Skip to content

CenterRadiusPointArc2DSegment

Canonical path: Utils.Geometry.Path2DUtil.CenterRadiusPointArc2DSegment

CenterRadiusArc2D segment

This class represents a segment of an arc defined by its center and radius point. It is initialized with a center and a radius point, and can be scaled by a matrix.

The execute method is intended to create an arc based on the center and radius.

Methods:

__init__

__init__(center_point: Point2D, radius_point: Point2D)

initialize

Parameters:

  • center_point (Point2D) –

    center point

  • radius_point (Point2D) –

    radius point

__mul__

__mul__(scale_mat: Matrix2D) -> CenterRadiusPointArc2DSegment

multiply the geometry with a matrix

Parameters:

Returns:

__repr__

__repr__() -> str

string representation

Returns:

  • str

    string representation

execute

execute(start_point: Point2D) -> Arc2D

execute the builder

Parameters:

  • start_point (Point2D) –

    start point of the arc

Returns:

Placeholder