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

AVL.RescaleSegment3D

Lengthens or shortens a segment in 3D relatively.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RescaleSegment3D
(
	AvlNet.Segment3D inSegment3D,
	float inScale,
	bool inInverse,
	out AvlNet.Segment3D outSegment3D
)

Parameters

Name Type Range Default Description
inSegment3DAvlNet.Segment3DInput segment in 3D.
inScalefloat1.0fScaling factor (negative values invert the segment). Default value: 1.0f.
inInverseboolSwitches to the inverse operation.
outSegment3DAvlNet.Segment3D

Errors

List of possible exceptions:

Error type Description
DomainError Scale cannot be zero in an inverse rescaling of a segment in RescaleSegment3D.

Function Overrides

See also