Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: vector doc typo and grammar #142

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions docs/vector.md
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ To understand vector projection, imagine that `otherVec` is resting on a line po

``` Lua
vec = Vector(2, 1, 4)
vec:project(Vector(1, - 2, 1))
vec:project(Vector(1, -2, 1))
print(vec) --> Vector: { 0.67, -1.3, 0.67 }
```

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

``` Lua
vec = Vector(2, 1, 4)
vec:projectOnPlane(Vector(1, - 2, 1))
vec:projectOnPlane(Vector(1, -2, 1))
print(vec) --> Vector: { 1.33, 2.33, 3.33 }
```

Expand Down Expand Up @@ -568,8 +568,8 @@ print(Vector.equals(vec1, vec2, 0.01)) --> true
vec = Vector(1, 2, 3)
str = vec:string('Prefix')
print(str) --> Prefix: { 1, 2, 3 }
print(vec:string('Prefix')) --> Prefix: { 1, 2, 3 }0
print(Vector.string(vec, 'Prefix')) --> Prefix: { 1, 2, 3 }0
print(vec:string('Prefix')) --> Prefix: { 1, 2, 3 }
print(Vector.string(vec, 'Prefix')) --> Prefix: { 1, 2, 3 }
```

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

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

-- We want out movement stretched over time, a Wait will do it periodically
-- We want the movement stretched over time, a Wait will do it periodically
local waitID
waitID = Wait.time(
function()
Expand Down