Back to Aurora Vision Library website

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

RescaleLine3D


Header: AVL.h
Namespace: avl
Module: Vision3DLite

Changes the input line in 3D distance to a reference point.

Syntax

C++
C#
 
void avl::RescaleLine3D
(
	const avl::Line3D& inLine3D,
	const avl::Point3D& inReferencePoint,
	float inScale,
	bool inInverse,
	avl::Line3D& outLine3D
)

Parameters

Name Type Default Description
Input value inLine3D const Line3D& Input line in 3D
Input value inReferencePoint const Point3D& The point to which the distance of line in 3D is changed
Input value inScale float 1.0f Scaling factor
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 Indefinite line on input in RescaleLine3D.
DomainError Scale cannot be zero in an inverse rescaling of a line in RescaleLine3D.