Document and shapes
This commit is contained in:
parent
e7a52dd70f
commit
f38481efee
18 changed files with 292 additions and 54 deletions
|
@ -1,8 +1,8 @@
|
|||
import { IData } from "types"
|
||||
import { Data } from "types"
|
||||
import * as svg from "./svg"
|
||||
import * as vec from "./vec"
|
||||
|
||||
export function screenToWorld(point: number[], data: IData) {
|
||||
export function screenToWorld(point: number[], data: Data) {
|
||||
return vec.add(vec.div(point, data.camera.zoom), data.camera.point)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue