Skip to content

Commit

Permalink
Update GetYForX.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
mrousavy authored Apr 29, 2022
1 parent 0c9d5cb commit 130d07e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/GetYForX.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import type { Vector, PathCommand } from '@shopify/react-native-skia'
import { PathVerb, vec } from '@shopify/react-native-skia'

// code from William Candillon

const round = (value: number, precision = 0): number => {
const p = Math.pow(10, precision)
return Math.round(value * p) / p
Expand Down

0 comments on commit 130d07e

Please sign in to comment.