-
Notifications
You must be signed in to change notification settings - Fork 0
PolylinePoint
Stephen S. Mitchell edited this page Sep 23, 2025
·
3 revisions
← Back to Classes | Documentation Home | Methods Index | Properties Index
- Namespace:
AlibreScript.API - Kind:
Class
Creates a new polyline point
def PolylinePoint(x, y):
"""
Creates a new polyline point
Args:
x (float): X coordinate
y (float): Y coordinate
"""Applies an offset to the point and creates a new point
def Offset(x, y):
"""
Applies an offset to the point and creates a new point
Args:
x (float): X offset to apply
y (float): Y offset to apply
Returns:
New point with offset applied
"""Rotates the point around the Z axis
def RotateZ(center_x, center_y, angle):
"""
Rotates the point around the Z axis
Args:
center_x (float): X coordinate of center of rotation
center_y (float): Y coordinate of center of rotation
angle (float): Number of degrees to rotate
"""Scales the point location based on an origin for the scaling
def Scale(scale_origin_x, scale_origin_y, scale_factor):
"""
Scales the point location based on an origin for the scaling
Args:
scale_origin_x (float): X-coordinate for scaling origin
scale_origin_y (float): Y-coordinate for scaling origin
scale_factor (float): Factor for scaling as a percentage
Returns:
New point with scaling applied
"""Documentation Home | Classes | Methods Index | Properties Index | Members Index
Generated on 2025-09-23 02:06