%%PageItemTitle%%

VectorDraw Web Library

JsPropertiesExtractor Send comments on this topic.
newpoint Method
See Also  Example
vdWebLibrary Namespace > vdgeo Class : newpoint Method
x
A numerical value representing the x value of the point.
y
A numerical value representing the y value of the point.
z
A numerical value representing the z value of the point.
Creates and returns a new 3 sized Array object. The first element of the Array represents the x value of the point, the second element the y value and the third the z value.

Syntax

JScript 
public function newpoint( 
   x : double,
   y : double,
   z : double
) : Object;

Parameters

x
A numerical value representing the x value of the point.
y
A numerical value representing the y value of the point.
z
A numerical value representing the z value of the point.

Return Value

A 3 sized Array object containing the x, y, z values of the point.

Example

C#Copy Code
function AddCircle() { 
    var vdcanvas = vdmanager.vdrawObject('canvas'); 
    vdcanvas.AddCircle(vdgeo.newpoint(0, 0, 0), 40, false); 
    vdcanvas.zoomExtents(); 
    vdcanvas.redraw(); 
}

See Also