AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkPoint.NormalizeSafe Method (TAgkPoint)

Returns a normalized copy of V or a zero point if V was already zero. Protects against divide by zero errors.

Syntax
Pascal
class function NormalizeSafe(const V: TAgkPoint): TAgkPoint; overload;
Parameters 
Description 
const V: TAgkPoint 
the vector to normalize. 

The normalized vector.

Copyright (c) 2012. All rights reserved.