This tab contains generally usable constants.
|  | Euler's number (For modes 2D, 3D, Console) |  Show exampleHide example | Euler's number has great importance in mathematics, eg. it is a base for natural logarithms. | Writes to the output window Euler's number. | | |
|
|
|  | Pi (For modes 2D, 3D, Console) |  Show exampleHide example | Represents approximate value of the number Pi : 3.14159265358979323846. | Writes to the output window value of constant Pi. | | |
|
|
|  | Integer min value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the smallest number of the type integer: -2147483648. | Writes to the output window minimum value of type int. | | |
|
|
|  | Integer max value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the biggest number of the type integer: 2147483647. | Writes to the output window maximum value of type int. | | |
|
|
|  | Float min value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the smallest number of the type float: -3.402823e38. | Writes to the output window minimum value of type float. | | |
|
|
|  | Float max value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the biggest number of the type float: 3.402823e38. | Writes to the output window maximum value of type float. | | |
|
|
|  | Double min value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the smallest number of the type double: -1.79769313486232e308. | Writes to the output window minimum value of type double. | | |
|
|
|  | Double max value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the biggest number of the type double: 1.79769313486232e308. | Writes to the output window maximum value of type double. | | |
|
|
|  | Char min value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the smallest number of the type char: 0x00. | Writes to the output window minimum value of type char which is typecast to integer. | | |
|
|
|  | Char max value (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the biggest number of the type char: 0xFFFF. | Writes to the output window maximum value of type char which is typecast to integer. | | |
|
|
|  | Radians (For modes 2D, 3D, Console) |  Show exampleHide example | Full angle (closed circle) is 2*p radians. | |
|
|  | Degrees (For modes 2D, 3D, Console) |  Show exampleHide example | Full angle (closed circle) is 360° (degrees). | Writes to the output window value of constant Deg. | | |
|
|
|  | Not a float-type number (For modes 2D, 3D, Console) |  Show exampleHide example | Represents value that is not a valid number of the type float. | Writes to the output window string "Není císlo", because constant Float NaN has the value, which is not the valid float number. | | |
|
|
|  | Not a double-type number (For modes 2D, 3D, Console) |  Show exampleHide example | Represents value that is not a valid number of the type double. | Writes to the output window "Není císlo" because value of constant NaN is not the valid double number. Then again writes to the output window "Není císlo" because sinus of infinite is not a number. | | |
|
|
|  | Constant True (For modes 2D, 3D, Console) |  Show exampleHide example | Constant, whose value is always true. | |
|
|  | Constant False (For modes 2D, 3D, Console) |  Show exampleHide example | Constant, whose value is always false. | |
|
|  | Control client width in points (For modes 2D, 3D, Console) |  Show exampleHide example | | Draws ellipsis over the whole output window. | | |
|
|
|  | Control client height in points (For modes 2D, 3D, Console) |  Show exampleHide example | | Draws ellipsis over the whole output window. | | |
|
|
|  | New line (For modes 2D, 3D, Console) |  Show exampleHide example | Represents the new-line characters. | Writes to the output window "Baltie" and creates new line. This is repeated once more. | | |
|
|
|  | Empty string (For modes 2D, 3D, Console) |  Show exampleHide example | Represents an empty string. | |
|
|  | Whitespace (For modes 2D, 3D, Console) |  Show exampleHide example | Represents space char. | |
|
|  | Folder of running program (For modes 2D, 3D, Console) |  Show exampleHide example | Returns folder from where the program has bee launched. | |
|
|  | Temporary folder (For modes 2D, 3D, Console) |  Show exampleHide example | Returns name of the folder for saving temporary files. | |
|
|  | Environment - Command line (For modes 2D, 3D, Console) |  Show exampleHide example | Returns string containing arguments, supplied to the program when launching. | Example (For modes 2D, 3D, Console) |    | | | |
|
|
|  | Get logical drivers (For modes 2D, 3D, Console) |  Show exampleHide example | Returns an array of computer's logical drives. | |
|
|  | Environment - Machine name (For modes 2D, 3D, Console) |  Show exampleHide example | Returns name of the computer where the program is currently running. | |
|
|  | Environment - User domain name (For modes 2D, 3D, Console) |  Show exampleHide example | Returns name of the domain where the user is currently logged in. | Example (For modes 2D, 3D, Console) |    | | | |
|
|
|  | Environment - User name (For modes 2D, 3D, Console) |  Show exampleHide example | Returns user name of the currently logged user. | |
|
|  | Directory separator char ( '\' ) (For modes 2D, 3D, Console) |  Show exampleHide example | | Writes to the output window string "C:\A\B\", where "\" is directory separator char. | | |
|
|
|  | Null (For modes 2D, 3D, Console) |  Show exampleHide example | General constant for undefined value. | Creates new local variable a in type ArrayList and adds value null in the variable. Then tries to write number of items in variable a, but this doesn't works, because it's value null in the variable a. Then creates new ArrayList in the variable a with 5 items and writes the number of items in the variable a without any problem. | | |
|
|
|  | Baltie's super speed (For modes 2D, 3D, Console) |  Show exampleHide example | | First sets the speed of Baltie on infinite and takes one step. Then sets speed on 2 and Baltie takes one step again. | | |
|
|
|  | Infinite timeout (For modes 2D, 3D, Console) |  Show exampleHide example | | |
|
|  | Camera 3D (For modes 2D, 3D) |  Show exampleHide example | The camera watchs the 3D-world. | |
|
|  | Camera 2D (For modes 2D, 3D) |  Show exampleHide example | The camera watchs the 2D-world. | |
|
|  | World 3D (For modes 2D, 3D) |  Show exampleHide example | In the 3D-world exist all objects, which we would like to show in tree-dimensions e.g. Baltie or terrain. | |
|
|  | World 2D (For modes 2D, 3D) |  Show exampleHide example | In the 2D-world are located flat objects and is rendered on the 3D-world. | |
|
|  | Direction north (For modes 2D, 3D) |  Show exampleHide example | | Baltie goes to the chosen place. If Baltie is turned to north, turns right twice and takes a step. If Baltie is turned to east, turns right and takes a step. If Baltie is turned to south, takes only a step. If Baltie is turned to west, turns left and takes a step. | | |
|
|
|  | Direction east (For modes 2D, 3D) |  Show exampleHide example | | Baltie goes to the chosen place. If Baltie is turned to north, turns right twice and takes a step. If Baltie is turned to east, turns right and takes a step. If Baltie is turned to south, takes only a step. If Baltie is turned to west, turns left and takes a step. | | |
|
|
|  | Direction south (For modes 2D, 3D) |  Show exampleHide example | | Baltie goes to the chosen place. If Baltie is turned to north, turns right twice and takes a step. If Baltie is turned to east, turns right and takes a step. If Baltie is turned to south, takes only a step. If Baltie is turned to west, turns left and takes a step. | | |
|
|
|  | Direction west (For modes 2D, 3D) |  Show exampleHide example | | Baltie goes to the chosen place. If Baltie is turned to north, turns right twice and takes a step. If Baltie is turned to east, turns right and takes a step. If Baltie is turned to south, takes only a step. If Baltie is turned to west, turns left and takes a step. | | |
|
|
|  | Font style - bold (For modes 2D, 3D, Console) |  Show exampleHide example | | |
|
|  | Font style - italic (For modes 2D, 3D, Console) |  Show exampleHide example | | |
|
|  | Font style - underline (For modes 2D, 3D, Console) |  Show exampleHide example | | |
|
|  | Font style - strikeout (For modes 2D, 3D, Console) |  Show exampleHide example | | |
|
|  | Current frame rate (For modes 2D, 3D) |  Show exampleHide example | Returns number of frames drawn during one second. | |
|
|  | Display panel (For modes 2D, 3D) | | | |
|
|  | Panel 2D viewport (For modes 2D, 3D) | | | |
|
|  | Panel 3D viewport (For modes 2D, 3D) | | | |
|
Did you find this information useful?
Documentation of SGP Baltie 4 C# Send us comments on this topic by this form
©1978-2010 SGP SystemsParent page | Previous page | Next page |