UNPKG

victory-native

Version:

[![Victory Native](https://oss.nearform.com/api/banner?badge=victory&text=victory+native&bg=9c2f1e)](https://commerce.nearform.com/open-source/victory-native/)

17 lines (14 loc) 406 B
import type { SkPoint } from "@shopify/react-native-skia"; export function degreesToRadians(degrees: number): number { return (degrees * Math.PI) / 180; } export function calculatePointOnCircumference( center: SkPoint, radius: number, angleInRadians: number, ): SkPoint { return { x: center.x + radius * Math.cos(angleInRadians), y: center.y + radius * Math.sin(angleInRadians), }; }