Back to Adaptive Vision Library website

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

CreateCoordinateSystemFromVector


Header: AVL.h
Namespace: avl
Module: FoundationLite

Creates a coordinate system from a vector.

Applications: Both vectors and coordinate systems can represent object translations. This operation does a conversion.

Syntax

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

Parameters

Name Type Range Default Description
inVector const Vector2D&
inAngle float
inScale float 0.001 - 1.0f
inScaleDivisor float 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.