Function: scoords

Syntax

scoords (<point>{,<window>})

Type

numeric

Returns

The screen coordinates corresponding to a 3-D modeling point in a graphic window. Two values are returned, x and y. Screen coordinates run from left to right, and top to bottom. If there is a problem doing the conversion, the values 0,0 are returned.

Parameters

Examples

Returns the screen coordinates corresponding to the modeling origin in the current graphic window.

numeric sxy[2] = scoords(p0)

Returns the screen coordinates corresponding to the point my_p in the window win1.

sxy = scoords(my_p,win1)

See Also

Functions:

ntos(numeric)

Structures:

window.view