You are here: Start » FIL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » FIL.ResizeSegment

FIL.ResizeSegment

Lengthens or shortens a segment to a new length preserving its orientation and center point.

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void ResizeSegment
(
	FilNet.Segment2D inSegment,
	float inNewLength,
	float inAnchor,
	out FilNet.Segment2D outSegment
)

Parameters

Name Type Range Default Description
inSegmentFilNet.Segment2D
inNewLengthfloat<0.0f, INF>1.0fDefault value: 1.0f.
inAnchorfloat<-INF, INF>0.5fDefault value: 0.5f.
outSegmentFilNet.Segment2D

Examples

ResizeSegment performed on the sample segment, inNewLength = 298.0.

See also