Changeset 248 for trunk/thune/doc
- Timestamp:
- 08/11/06 16:12:18 (2 years ago)
- Files:
-
- 1 modified
-
trunk/thune/doc/UserManual (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/thune/doc/UserManual
r236 r248 75 75 block! [] [a b c] 76 76 paren! () (a b c) 77 array! #[1 2 3] 77 78 function! [2 add] proc :inc2 78 79 call! … … 80 81 decimal! 3.05 -4. 81 82 coord! 0,255,100 -1, 0, 0 83 vec3! 0.0,255.0,100.0 -1.0, 0, 0 82 84 char! 'a' '^-' 83 85 string! "hello" {hello} … … 120 122 121 123 124 Array 125 ----- 126 127 Arrays hold a series of 32-bit numbers using less memory than a block!. 128 129 All numbers in an array are either integers or floating point values. If 130 any number is specified as a decimal!, all numbers will be floating point. 131 132 122 133 Coord 123 134 ----- … … 133 144 255,10,0 ; rgb triplet 134 145 192,168,0,1 ; IP-4 network address 146 147 148 Vec3 149 ---- 150 151 Vec3 stores 3 floating point values. 135 152 136 153 … … 388 405 arctan (n -- r) Arctangent 389 406 sqrt (n -- r) Square root 407 random (max -- n) Generate random number. 408 random (n 'seed -- ) Seed random number generator. 390 409 =========== ================= ================= 410 411 412 Vector Math 413 ~~~~~~~~~~~ 414 415 These functions operate on vec3!/coord!. 416 417 =========== ====================== ====================== 418 Word Stack Usage Function 419 =========== ====================== ====================== 420 dot (v1 v2 -- dot) Vector dot product. 421 cross (v1 v2 -- cross) Vector cross product. 422 normalize (vec -- vec) Make vec3 unit length. 423 =========== ====================== ====================== 391 424 392 425
