CreateCoordinateSystemFromTwoPoints


Creates a coordinate system with two points on its axes.

Applications:Most often used to define an object alignment from results of two 1D Edge Detection scans, each of which locates one side of a rectangular object.

Syntax

C++
Python
 
def CreateCoordinateSystemFromTwoPoints(
	inPoint1: Point2D,
	inPoint2: Point2D,
	/,
	*,
	inAngle: float = 0,
	inScale: float = 1.0,
	inScaleDivisor: float = 1.0
)
-> outCoordinateSystem: CoordinateSystem2D

Parameters

Name Type Range Default Description
Input value inPoint1 Point2D
Input value inPoint2 Point2D
Input value inAngle float 0
Input value inScale float 0.001 - 1.0
Input value inScaleDivisor float 0.001 - 1.0
Output value outCoordinateSystem CoordinateSystem2D