Back to Aurora Vision Library website

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

RotateSegment3D


Header: AVL.h
Namespace: avl
Module: Vision3DLite

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

Syntax

C++
C#
 
void avl::RotateSegment3D
(
	const avl::Segment3D& inSegment3D,
	const avl::Line3D& inAxis,
	float inAngle,
	bool inInverse,
	avl::Segment3D& outSegment3D
)

Parameters

Name Type Default Description
Input value inSegment3D const Segment3D&
Input value inAxis const Line3D& The rotation axis
Input value inAngle float Clockwise angle of rotation
Input value inInverse bool Switches to the inverse operation
Output value outSegment3D Segment3D&

In-place Processing

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

Read more about In-place Computation.