Arc#
- class ansys.motorcad.core.geometry.Arc(start, end, centre=None, radius=None)#
Python representation of Motor-CAD arc entity based upon start, end, (centre or radius).
- Parameters:
- start
Coordinate
Start coordinate.
- end
Coordinate
End coordinate.
- centre
Coordinate
,optional
Centre coordinate.
- radius
float
,optional
Arc radius
- start
Methods
Arc.coordinate_on_entity
(coordinate)Get if a coordinate exists on this Arc.
Arc.coordinate_within_arc_radius
(coordinate)Check if coordinate exists within arc radius.
Arc.from_coordinates
(start_point, ...)Take three coordinates and converts to an arc.
Get intersection Coordinates of arc with another arc.
Arc.get_coordinate_from_distance
(ref_coordinate)Get the coordinate at the specified distance along the arc from the reference coordinate.
Get the coordinate at a fractional distance along the arc from the reference coord.
Arc.get_intersection
(entity)Get intersection Coordinate of entity with another entity.
Get intersection Coordinates of arc with a line.
Arc.mirror
(mirror_line)Mirror arc about a line.
Reverse Arc entity.
Arc.rotate
(centre_point, angle)Rotate entity around a point for a given angle.
Arc.translate
(x, y)Translate Entity by specified x,y distances.
Attributes
Get centre point of circle defining arc.
Get angle of end point from centre point coordinates.
Get length of arc from start to end along circumference.
Get midpoint of arc.
Get angle of start point from centre point coordinates.
Get arc sweep angle.