%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
pointPolar Method
See Also  Example
vdWebLibrary Namespace > vdgeo Class : pointPolar Method
point
A point to start from.
angle
The angle to follow.
distance
The distance required for the calculation.
Calculates and returns a vdgeo.newpoint at a given distance and angle from the passed point.

Syntax

JScript 
public function pointPolar( 
   point : Object,
   angle : double,
   distance : double
) : Object;

Parameters

point
A point to start from.
angle
The angle to follow.
distance
The distance required for the calculation.

Return Value

Returns a vdgeo.newpoint at the given distance and angle in radians see also DegreesToRadians and RadiansToDegrees.

Example

C#Copy Code
secondvdLine.EndPoint = vdgeo.pointPolar(vdgeo.newpoint(0, 0, 0), angle, 5.0);

See Also