Back to Aurora Vision Library Lite website

You are here: Start » Geometry 2D » Geometry 2D Spatial Transforms » RotateAngle_Toward

RotateAngle_Toward


Header: AVL.h
Namespace: avl

Changes the input direction in the direction of minimum rotation toward the target direction.

Syntax

void avl::RotateAngle_Toward
(
	float inAngle,
	float inTargetAngle,
	avl::AngleRange::Type inAngleRange,
	float inRotationAngle,
	bool inInverse,
	float& outAngle
)

Parameters

Name Type Default Description
Input value inAngle float
Input value inTargetAngle float
Input value inAngleRange AngleRange::Type _0_180
Input value inRotationAngle float
Input value inInverse bool
Output value outAngle float&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inAngle and outAngle

Read more about In-place Computation.