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.
Get the magnitude of the point vector.
PointData.move
(vector)Move the point by a vector.
Normalize the point vector.
PointData.rotate
(angle, center)Rotate a point at a given center by a given angle.
Attributes