PointData#

class ansys.edb.core.geometry.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

utility.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

utility.Value: X coordinate.

PointData.y

utility.Value: Y coordinate.