Back to Adaptive Vision Library website

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

RescaleSegment3D


Lengthens or shortens a segment in 3D relatively.

Syntax

C++
C#
 
void avl::RescaleSegment3D
(
	const avl::Segment3D& inSegment3D,
	atl::Optional<const avl::Point3D&> inReferencePoint,
	float inScale,
	bool inInverse,
	avl::Segment3D& outSegment3D
)

Parameters

Name Type Default Description
inSegment3D const Segment3D& Input segment in 3D
inReferencePoint Optional<const Point3D&> NIL The point to which all distances change linearly (the mass center by default)
inScale float 1.0f Scaling factor (negative values invert the segment)
inInverse bool Switches to the inverse operation
outSegment3D Segment3D&