Back to FabImage Library website

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

RotateLine3D_AroundSegment


Header: FIL.h
Namespace: fil
Module: Vision3DLite

Rotates a line in 3D around a segment (the axis) in 3D.

Syntax

C++
C#
 
void fil::RotateLine3D_AroundSegment
(
	const fil::Line3D& inLine3D,
	const fil::Segment3D& inAxisSegment,
	float inAngle,
	bool inInverse,
	fil::Line3D& outLine3D
)

Parameters

Name Type Default Description
Input value
inLine3D const Line3D&
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
outLine3D Line3D&

In-place Processing

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

Read more about In-place Computation.

Errors

List of possible exceptions:

Error type Description
DomainError Empty segment on input in RotateLine3D_AroundSegment.
DomainError Indefinite line on input in RotateLine3D_AroundSegment.