PointData#

class ansys.edb.core.geometry.point_data.PointData(*data)#

Represents arbitrary (x, y) coordinates that exist on a 2D space.

Methods

PointData.angle(other)

Get the angle between this vector and another vector.

PointData.closest(start, end)

Get the closest point on a line segment from the point.

PointData.cross(other)

Compute the cross product of the point vector with another point vector.

PointData.distance(start[, end])

Compute the shortest distance from the point to a line segment when an end point is given.

PointData.dot(other)

Perform per-component multiplication (dot product) of this point and another point.

PointData.equals(other[, tolerance])

Determine if two points are located at the same coordinates.

PointData.magnitude()

Get the magnitude of the point vector.

PointData.move(vector)

Move the point by a vector.

PointData.normalized()

Normalize the point vector.

PointData.rotate(angle, center)

Rotate a point at a given center by a given angle.

Attributes

PointData.arc_height

Value: Height of the arc.

PointData.is_arc

bool: Flag indicating if the point represents an arc.

PointData.is_parametric

bool: Flag indicating if the point contains parametric values (variable expressions).

PointData.x

Value: X coordinate.

PointData.y

Value: Y coordinate.