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

AVL.RescaleLine3D

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

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void RescaleLine3D
(
	AvlNet.Line3D inLine3D,
	AvlNet.Point3D inReferencePoint,
	float inScale,
	bool inInverse,
	out AvlNet.Line3D outLine3D
)

Parameters

Name Type Range Default Description
inLine3DAvlNet.Line3DInput line in 3D.
inReferencePointAvlNet.Point3DThe point to which the distance of line in 3D is changed.
inScalefloat1.0fScaling factor. Default value: 1.0f.
inInverseboolSwitches to the inverse operation.
outLine3DAvlNet.Line3D

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.

See also