You are here: Start » AVL.NET » Invoke.RescaleSegment

Invoke.RescaleSegment

Lengthens or shortens a segment relatively.

Namespace:Avl
Assembly:AvlNet.dll

Syntax

C++
C#
 
public static void RescaleSegment
(
	Avl.Segment2D inSegment,
	Optional<Avl.Point2D> inReferencePoint,
	float inScale,
	bool inInverse,
	out Avl.Segment2D outSegment
)

Parameters

Name Type Range Default Description
inSegmentAvl.Segment2D
inReferencePointAtl.Optional<Avl.Point2D>The point to which all distances change linearly (the mass center by default). Default value: atl::NIL.
inScalefloat1.0fScaling factor (negative values invert the segment). Default value: 1.0f.
inInverseboolSwitches to the inverse operation.
outSegmentAvl.Segment2D

See also