Back to FabImage Library Lite website

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

CreateCoordinateSystemFromVector


Header: FIL.h
Namespace: fil

Creates a coordinate system from a vector.

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

Syntax

void fil::CreateCoordinateSystemFromVector
(
	const fil::Vector2D& inVector,
	float inAngle,
	float inScale,
	float inScaleDivisor,
	fil::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.