import { Vector } from "../components" ; import { deg2rad } from "../systems/math" ; remarks param rotation export function rotationToNormal ( rotation ) { const alpha = rotation . x * deg2rad ; const beta = rotation . y * deg2rad ; const a = new Vector ( Math . cos ( beta ) , 0 , Math . sin ( beta ) ) ; const b = new Vector ( 0 , Math . cos ( alpha ) , Math . sin ( alpha ) ) ; return a . cross ( b ) ; }