Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Constructions » CreateCoordinateSystemFromSegment
![](../../img/icon\ComposeTransforms.png)
CreateCoordinateSystemFromSegment
Creates a coordinate system with the origin on a given segment.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::CreateCoordinateSystemFromSegment ( const avl::Segment2D& inSegment, float inPointAnchor, float inRelativeAngle, float inScale, float inScaleDivisor, avl::CoordinateSystem2D& outCoordinateSystem )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() |
inSegment | const Segment2D& | |||
![]() |
inPointAnchor | float | -1.0 - 1.0 | 0.0f | |
![]() |
inRelativeAngle | float | |||
![]() |
inScale | float | 0.001 - ![]() |
1.0f | |
![]() |
inScaleDivisor | float | 0.001 - ![]() |
1.0f | |
![]() |
outCoordinateSystem | CoordinateSystem2D& |
Hints
- Pass inSegment to a computed segment representing the origin and the rotation of a new coordinate system.
- Optionally set inScale and inScaleDivisor to obtain a custom scale.
- Optionally set inPointAnchor and/or inRelativeAngle to modify the origin and the rotation.
Remarks
Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.