NEWXVALUE

This command will return a value that represents the new X position of a point in 3D space.

  Syntax
Return Float=NEWXVALUE(Current X Value, Angle Value, Step Value)
  Parameters
Current X Value
Float
This value is a float number such as 0.5
Angle Value
Float
Specify the angle value in degrees between 0 and 360.
Step Value
Float
This value is a float number such as 0.5

  Returns

This value is a float number such as 0.5

  Description

This command is used in conjunction with NEWYVALUE and NEWZVALUE commands to move from one point in space to another point in space based on a specified angle. Rather than using COS/SIN maths, these commands simplify the task of moving coordinates within 3D space. The step value specifies how far in the specified direction you would like to calculate. The parameters should be specified using real numbers.

  Example Code
X#=320
Y#=240
DO
X#=NEWXVALUE(X#,0,1)
Y#=NEWYVALUE(Y#,0,1)
DOT X#,Y#
LOOP
  See also

CORE Commands Menu
Index