You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Stephen S. Mitchell edited this page Apr 25, 2026
·
4 revisions
Namespace: AlibreScript.API
Kind: Class
Methods
PolylinePoint
Creates a new polyline point
defPolylinePoint(x, y):
"""Creates a new polyline pointArgs:x (float): X coordinatey (float): Y coordinate"""
Offset
Applies an offset to the point and creates a new point
defOffset(x, y):
"""Applies an offset to the point and creates a new pointArgs:x (float): X offset to applyy (float): Y offset to applyReturns:New point with offset applied"""
RotateZ
Rotates the point around the Z axis
defRotateZ(center_x, center_y, angle):
"""Rotates the point around the Z axisArgs:center_x (float): X coordinate of center of rotationcenter_y (float): Y coordinate of center of rotationangle (float): Number of degrees to rotate"""
Scale
Scales the point location based on an origin for the scaling
defScale(scale_origin_x, scale_origin_y, scale_factor):
"""Scales the point location based on an origin for the scalingArgs:scale_origin_x (float): X-coordinate for scaling originscale_origin_y (float): Y-coordinate for scaling originscale_factor (float): Factor for scaling as a percentageReturns:New point with scaling applied"""