Back to Aurora Vision Library Lite website
You are here: Start » Geometry 2D » Geometry 2D Constructions » CreateCoordinateSystemFromVector
CreateCoordinateSystemFromVector
Header: | AVL.h |
---|---|
Namespace: | avl |
Creates a coordinate system from a vector.
Applications: Both vectors and coordinate systems can represent object translations. This operation does a conversion.
Syntax
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.