Back to Aurora Vision Library website

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

RotatePoint3D_AroundSegment


Header: AVL.h
Namespace: avl
Module: Vision3DLite

Rotates a 3D point around a segment (the axis).

Syntax

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

Parameters

Name Type Default Description
Input value inPoint3D const Point3D&
Input value inAxisSegment const Segment3D& The rotation axis
Input value inAngle float Clockwise angle of rotation
Input value inInverse bool Switches to the inverse operation
Output value outPoint3D Point3D&
Output value 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.