Skip to main content

DEG2RAD

A utility for converting degrees to radians.

import React from "react";
import { DEG2RAD, RAD2DEG, Euler } from "hyperfy";

export default function App() {
const rotation = new Euler(0, 90 * DEG2RAD, 0, "YXZ");
console.log(rotation);

const yDegrees = rotation.y * RAD2DEG; //90
console.log(yDegrees);

return <app />;
}