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

AVL.ResizeSegment3D_Delta

Changes length of a segment in 3D by adding a value preserving its orientation and center point.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ResizeSegment3D_Delta
(
	AvlNet.Segment3D inSegment3D,
	float inDelta,
	float inAnchor,
	out AvlNet.Segment3D outSegment3D
)

Parameters

Name Type Range Default Description
inSegment3DAvlNet.Segment3D
inDeltafloat0.0fValue added to segment length. Default value: 0.0f.
inAnchorfloat<-INF, INF>0.5fAnchor point, 0 means the beginning, 1 means the end of the segment. Default value: 0.5f.
outSegment3DAvlNet.Segment3D

Errors

List of possible exceptions:

Error type Description
DomainError Negative segment length in ResizeSegment3D_Delta.

See also