Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/threejs_4_deno/src/core/Object3D.d.ts>Object3D#rotateOnAxis

A simple transformation of three.js for use within a Deno workflow
Go to Latest
method Object3D.prototype.rotateOnAxis
import { Object3D } from "https://deno.land/x/threejs_4_deno@v121/src/core/Object3D.d.ts";

Rotate an object along an axis in object space. The axis is assumed to be normalized.

Parameters

axis: Vector3

A normalized vector in object space.

angle: number

The angle in radians.