import { Bullet } from "./PlayStage" ; export function bulletX ( b , extrapolatedDistance = 0 ) { return Math . round ( - ( b . distance + extrapolatedDistance ) * Math . cos ( ( b . rotation * Math . PI ) / 180 ) ) ; } export function bulletY ( b , fullHeight , extrapolatedDistance = 0 ) { return Math . round ( - fullHeight + ( b . distance + extrapolatedDistance ) * Math . sin ( ( b . rotation * Math . PI ) / 180 ) ) ; }