Back to Adaptive Vision Library website

You are here: Start » Function Reference » Geometry 3D » Geometry 3D Spatial Transforms » RotatePoint3D

RotatePoint3D


Header: AVL.h
Namespace: avl
Module: Vision3DLite

Rotates a 3D point around an axis in 3D.

Syntax

C++
C#
 
void avl::RotatePoint3D
(
	const avl::Point3D& inPoint3D,
	const avl::Line3D& inAxis,
	float inAngle,
	bool inInverse,
	avl::Point3D& outPoint3D,
	atl::Optional<avl::Matrix&> outTransform = atl::NIL
)

Parameters

Name Type Default Description
inPoint3D const Point3D&
inAxis const Line3D& The rotation axis
inAngle float Clockwise angle of rotation
inInverse bool Switches to the inverse operation
outPoint3D Point3D&
outTransform Optional<Matrix&> NIL

In-place Processing

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

Read more about In-place Computation.

Optional Outputs

The computation of following outputs can be switched off by passing value atl::NIL to these parameters: outTransform.

Read more about Optional Outputs.