Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 2D Constructions » CreateCoordinateSystemFromVector

CreateCoordinateSystemFromVector


Creates a coordinate system from a vector.

Syntax

C++
C#
 
void avl::CreateCoordinateSystemFromVector
(
	const avl::Vector2D& inVector,
	atl::real inAngle,
	atl::real inScale,
	atl::real inScaleDivisor,
	avl::CoordinateSystem2D& outCoordinateSystem
)

Parameters

Name Type Range Default Description
inVector const Vector2D&
inAngle real
inScale real 0.001 - 1.0f
inScaleDivisor real 0.001 - 1.0f
outCoordinateSystem CoordinateSystem2D&

Hints

  • Pass inVector to a computed vector representing the origin of a new coordinate system.
  • Optionally set inAngle to define the rotation.
  • Optionally set inScale and inScaleDivisor to obtain a custom scale.

Remarks

Read more about Local Coordinate Systems in Machine Vision Guide: Local Coordinate Systems.