Back to Adaptive Vision Library website
You are here: Start » Function Reference » Geometry 2D Constructions » CreateCoordinateSystemFromPoint
CreateCoordinateSystemFromPoint
Creates a coordinate system with the specified origin.
Header: | AVL.h |
---|
Syntax
C++
C#
void avl::CreateCoordinateSystemFromPoint ( const avl::Point2D& inPoint, float inAngle, float inScale, float inScaleDivisor, avl::CoordinateSystem2D& outCoordinateSystem )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
inPoint | const Point2D& | Origin of the created coordinate system | |||
inAngle | float | ||||
inScale | float | 0.001 - | 1.0f | ||
inScaleDivisor | float | 0.001 - | 1.0f | ||
outCoordinateSystem | CoordinateSystem2D& |
Hints
- Pass inPoint to a computed point, where you want to anchor a new coordinate system.
- Optionally set inAngle to define the rotation.
- Optionally set inScale and inScaleDivisor to obtain a custom scale.
Examples
Remarks
Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.