Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.
Stephen S. Mitchell edited this page Apr 25, 2026 · 4 revisions
  • Namespace: AlibreScript.API
  • Kind: Class

Methods

GetPerpendicularVector

Gets a vector that is perpendicular to a vector

def GetPerpendicularVector(vector):
"""
Gets a vector that is perpendicular to a vector

Args:
vector (list): Vector [X, Y]

Returns:
Vector that is perpendicular [X, Y]

"""

NormalizeVector

Normalizes a vector

def NormalizeVector(vector):
"""
Normalizes a vector

Args:
vector (list): Vector [X, Y]

Returns:
Normalized vector [X, Y]

"""

RotatePoint

Rotates a point

def RotatePoint(point, angle):
"""
Rotates a point

Args:
point (list): Point to rotate as [X, Y]
angle (float): Angle to rotate in degrees

Returns:
Rotated point as [RX, RY]

"""

Clone this wiki locally