You are here: Start » AVL.NET » Function Reference » Geometry 2D » Geometry 2D Spatial Transforms » AVL.TranslatePoint_Toward

AVL.TranslatePoint_Toward

Translates a point towards another point by a specified distance.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void TranslatePoint_Toward
(
	AvlNet.Point2D inPoint,
	AvlNet.Point2D inTargetPoint,
	float inDistance,
	bool inInverse,
	out AvlNet.Point2D outPoint
)

Parameters

Name Type Range Default Description
inPointAvlNet.Point2D
inTargetPointAvlNet.Point2DDefines the direction of the translation.
inDistancefloatThe distance between inPoint and outPoint.
inInverseboolSwitches to the inverse operation.
outPointAvlNet.Point2D

See also