Back to FabImage Library website

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

TranslatePoint_Toward


Header: FIL.h
Namespace: fil
Module: FoundationLite

Translates a point towards another point by a specified distance.

Syntax

C++
C#
 
void fil::TranslatePoint_Toward
(
	const fil::Point2D& inPoint,
	const fil::Point2D& inTargetPoint,
	float inDistance,
	bool inInverse,
	fil::Point2D& outPoint
)

Parameters

Name Type Default Description
Input value inPoint const Point2D&
Input value inTargetPoint const Point2D& Defines the direction of the translation
Input value inDistance float The distance between inPoint and outPoint
Input value inInverse bool Switches to the inverse operation
Output value outPoint Point2D&

In-place Processing

This function supports in-place data processing - you can pass the same reference to inPoint and outPoint

Read more about In-place Computation.