-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
144b7fd
commit b0aa764
Showing
6 changed files
with
200 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,12 @@ | ||
// {"name": "Playground", "author": "Daniel Santos", "version": "06022024", "file": "playground.js"} | ||
|
||
let v1 = new Vector2(15.0f, 15.0f); | ||
let v2 = new Vector2(30.0f, 30.0f); | ||
let v1 = Vector2.new(15.0f, 15.0f); | ||
let v2 = Vector2.new(30.0f, 30.0f); | ||
|
||
Screen.log(`Vectors distance is ${v1.dist(v2)}`); | ||
Screen.log(`Vectors distance is ${v1.dist(v2)}`) | ||
Screen.log(`Vectors add is ${Vector2.add(v1, v2).toString()}`); | ||
Screen.log(`Vectors sub is ${Vector2.sub(v1, v2).toString()}`); | ||
Screen.log(`Vectors mul is ${Vector2.mul(v1, v2).toString()}`); | ||
Screen.log(`Vectors div is ${Vector2.div(v1, v2).toString()}`); | ||
|
||
System.sleep(99999); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters