O3D_Y_POSITION()

O3D_Y_POSITION(N)

RETURNS THE POSITION ON Y AXIS OF THE 3D OBJECT NUMBER N

  • Type: Function
  • Parameter: 1
  • Group: 3D Objects

ACTION

The function O3D_Y_POSITION(N) returns the position on the Y axis of the 3D object designated by its number N.

SYNTAX: Result=O3D_Y_POSITION(N)

  • N = 3D object number (integer or real). Must be greater than 0 and less than or equal to the allowed maximum number of 3D objects.

USE

  • The function O3D_Y_POSITION() is used to know the position on Y axis of a 3D object.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of 3D objects.
  • If number N is not greater than 0.
  • If 3D object number N does not exist.

EXAMPLE

rem create a 3D world

scene3d 1

rem a sphere is created at (0,0,0)

3d_sphere 1,2

rem move it to (0,5,0)

3d_y_position 1,5

rem display its position on Y

print o3d_y_position(1)

SEE ALSO

O3D_X_POSITION()

O3D_Z_POSITION()