HyperCrash

Types

Types

Previous topic Next topic No expanding text in this topic  

Types

Previous topic Next topic JavaScript is required for expanding text JavaScript is required for the print function  

The types that are currently recognized by the interpreter are the following:

Integer number — may be used for counting or numbering other objects.
Floating point number — a general representation of a real number. Will be used for the geometry definition (coordinates of nodes, vectors) etc. Some floating point constants are predefined (Table 1). The operations that may be applied to floating point arguments are listed in Table 2.
String of characters — will serve as file names, comments attached to objects, titles, etc.  A string is delimited by double quotes. It may contain C-like escape sequences beginning with a \ (\, \n, etc. or \ followed by an octal number). The strings must not be defined across lines.
Logical (Boolean) — in the future, this will be used to control the commands flow (conditional statements).
Mathematical function — an abstract mathematical function that may be applied to a floating point number. The predefined mathematical functions are listed in Table 5. For instance, it is impossible for a user to add new mathematical functions.
Node — the basis of all geometrical objects.
Vector — a simple geometrical object.
Line — a straight line.
Plan — a plane.
Model — a set of surface patches, such as an airbag.
Integer list — a set of integers.
Floating point list — a set of floating point numbers.

 

Table 1: List of predefined floating point constants.

Name

Description

e

hc_img45 (natural logarithm base)

pi

hc_img31

one

one

zero

zero value