User contributions
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)
- 11:07, 23 February 2013 (diff | hist) . . (+199) . . N VectorA:round (Created page with "Returns a vector with all components rounded to the nearest integer Code example: local a = vector.new(1.4999, 1.5, 3.14) local c = a:round() print(c.x) print(c.y) p...")
- 11:03, 23 February 2013 (diff | hist) . . (+5) . . VectorA:normalize
- 11:03, 23 February 2013 (diff | hist) . . (+410) . . N VectorA:normalize (Created page with "Returns a normal vector with a length of 1 Code representation: local a = vector.new(1, 2, 3) local len = a:length() local c = vector.new(a.x / len, a.y / len, a.z / l...")
- 10:59, 23 February 2013 (diff | hist) . . (0) . . VectorA:length
- 10:59, 23 February 2013 (diff | hist) . . (0) . . VectorA:length
- 10:21, 23 February 2013 (diff | hist) . . (+246) . . N VectorA:length (Created page with "Returns the length of the vector Code representation: local a = vector.new(1, 2, 3) local c = math.sqrt(a.x^2 + a.y^2 + a.z^2) --c = 3.7416575 Code example: local a ...")
- 10:12, 23 February 2013 (diff | hist) . . (+399) . . VectorA:cross
- 09:59, 23 February 2013 (diff | hist) . . (+173) . . VectorA:mul
- 09:56, 23 February 2013 (diff | hist) . . (+40) . . N VectorA:cross (Created page with "Returns the cross product of two vectors")
- 09:43, 23 February 2013 (diff | hist) . . (-5) . . VectorA:dot
- 09:42, 23 February 2013 (diff | hist) . . (+512) . . N VectorA:dot (Created page with "Returns the dot product of two vectors A dot product can be represented by multiplying the corresponding values together and then summing the results. More information on do...")
- 09:25, 23 February 2013 (diff | hist) . . (+11) . . Vector (API)
- 09:21, 23 February 2013 (diff | hist) . . (+176) . . N VectorA:mul (Created page with "Returns a multiplication of the vector by a scalar local a = vector.new(1, 2, 3) local b = 2.5 local c = a:mul(b) print(c.x) print(c.y) print(c.z) --2.5 --5 --7.5")
- 09:16, 23 February 2013 (diff | hist) . . (+207) . . N VectorA:sub (Created page with "Returns the result of subtracting the second vector from the first local a = vector.new(1, 2, 3) local b = vector.new(3, 2, 1) local c = a:sub(b) print(c.x) print(c....")
- 09:14, 23 February 2013 (diff | hist) . . (+4) . . Vector (API)
- 09:12, 23 February 2013 (diff | hist) . . (+175) . . N VectorA:add (Created page with "Returns the result of the two vectors local a = vector.new(1, 2, 3) local b = vector.new(4, 5, 6) local c = a:add(b) print(c.x) print(c.y) print(c.z) --5 --7 --9")
- 09:08, 23 February 2013 (diff | hist) . . (0) . . Vector.new
- 09:06, 23 February 2013 (diff | hist) . . (+25) . . N Table (Redirected page to Table (API))
- 08:59, 23 February 2013 (diff | hist) . . (+86) . . Table (API) (current)
- 08:56, 23 February 2013 (diff | hist) . . (-1) . . Vector (API)
- 08:56, 23 February 2013 (diff | hist) . . (-3) . . Vector (API)
- 08:55, 23 February 2013 (diff | hist) . . (-19) . . Vector.new
- 08:54, 23 February 2013 (diff | hist) . . (+194) . . N Vector.new (Created page with "Returns a table with the labels "x", "y" and "z" containing the coordinates of the vector. local a = vector.new(1, 2, 3) save(a, "vector") print(a.x) print(a.y) print(...")
(newest | oldest) View (newer 50 | older 50) (20 | 50 | 100 | 250 | 500)