Entity#

class ansys.motorcad.core.geometry.Entity(start, end)#

Generic parent class for geometric entities based upon a start and end coordinate.

Parameters:
startCoordinate

Start coordinate.

endCoordinate

End coordinate.

Methods

Entity.get_intersection(entity)

Get intersection Coordinate of entity with another entity.

Entity.mirror(mirror_line)

Mirror entity about a line.

Entity.reverse()

Reverse Entity class.

Entity.rotate(centre_point, angle)

Rotate entity around a point for a given angle.

Entity.translate(x, y)

Translate Entity by specified x,y distances.