AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkPoint.Rotate Method (TAgkPoint, TAgkPoint)

Uses complex multiplication to rotate V1 by V2. Scaling will occur if V1 is not a unit vector.

Syntax
Pascal
class function Rotate(const V1: TAgkPoint; const V2: TAgkPoint): TAgkPoint; overload;
Parameters 
Description 
const V1: TAgkPoint 
the first vector. 
const V2: TAgkPoint 
the second vector. 

The rotation of V1 by V2.

Copyright (c) 2012. All rights reserved.