TwoD

Back to Classes | Documentation Home | Methods Index | Properties Index

  • 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]
 
"""

⬆ Back to Top