Skip to content

Commit b5d666e

Browse files
authored
Merge pull request #142 from markodowd/fix-vector-doc
Fix: vector doc typo and grammar
2 parents f39b031 + ee1aae9 commit b5d666e

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/vector.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -361,7 +361,7 @@ To understand vector projection, imagine that `otherVec` is resting on a line po
361361

362362
``` Lua
363363
vec = Vector(2, 1, 4)
364-
vec:project(Vector(1, - 2, 1))
364+
vec:project(Vector(1, -2, 1))
365365
print(vec) --> Vector: { 0.67, -1.3, 0.67 }
366366
```
367367

@@ -376,7 +376,7 @@ A Vector stores the position of the given `vec` in 3d space. A second Vector is
376376

377377
``` Lua
378378
vec = Vector(2, 1, 4)
379-
vec:projectOnPlane(Vector(1, - 2, 1))
379+
vec:projectOnPlane(Vector(1, -2, 1))
380380
print(vec) --> Vector: { 1.33, 2.33, 3.33 }
381381
```
382382

@@ -568,8 +568,8 @@ print(Vector.equals(vec1, vec2, 0.01)) --> true
568568
vec = Vector(1, 2, 3)
569569
str = vec:string('Prefix')
570570
print(str) --> Prefix: { 1, 2, 3 }
571-
print(vec:string('Prefix')) --> Prefix: { 1, 2, 3 }0
572-
print(Vector.string(vec, 'Prefix')) --> Prefix: { 1, 2, 3 }0
571+
print(vec:string('Prefix')) --> Prefix: { 1, 2, 3 }
572+
print(Vector.string(vec, 'Prefix')) --> Prefix: { 1, 2, 3 }
573573
```
574574

575575
!!!warning
@@ -625,7 +625,7 @@ The value returned equals (b - a) * t. When t = 0 returns a. When t = 1 returns
625625
* [<span class="tag flo"></span>](types.md) **t**: Fraction.
626626

627627
``` Lua
628-
p1 = Vector(1, 2, - 4)
628+
p1 = Vector(1, 2, -4)
629629
p2 = Vector(1, 2, 4)
630630
print(p1:lerp(p2, 0.25)) --> Vector: { 1, 2, -2 }
631631
print(Vector.lerp(p1, p2, 0.25)) --> Vector: { 1, 2, -2 }
@@ -685,7 +685,7 @@ function onLoad()
685685
local target = Vector(-10, 5, 0) -- obj destination
686686
local movementType = 'linear' -- try with 'spherical' or 'asymptotic' to see how other methods work
687687

688-
-- We want out movement stretched over time, a Wait will do it periodically
688+
-- We want the movement stretched over time, a Wait will do it periodically
689689
local waitID
690690
waitID = Wait.time(
691691
function()

0 commit comments

Comments
 (0)