AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkPoint.LinearInterpolate Method (TAgkPoint, TAgkPoint, Single)

Linearly interpolate between P1 and P2.

Syntax
Pascal
class function LinearInterpolate(const P1: TAgkPoint; const P2: TAgkPoint; const T: Single): TAgkPoint; overload;
Parameters 
Description 
const P1: TAgkPoint 
the first point. 
const P2: TAgkPoint 
the second point. 
const T: Single 
the fraction (0-1) between P1 and P2. 

The point between P1 and P2 at fraction T.

Copyright (c) 2012. All rights reserved.