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 | |
|---|---|---|---|---|---|
![]() |
inPoint1 | Point2D | |||
![]() |
inPoint2 | Point2D | |||
![]() |
inAngle | float | 0 | ||
![]() |
inScale | float | 0.001 - ![]() |
1.0 | |
![]() |
inScaleDivisor | float | 0.001 - ![]() |
1.0 | |
![]() |
outCoordinateSystem | CoordinateSystem2D |



