import { type Matrix4x4Helpers } from "https://deno.land/x/canvaseno@v1.0.2/mod.ts";
See SkM44.h for more details.
Methods
Returns the inverse of the given 4x4 matrix or null if it is not invertible.
Return a new 4x4 matrix representing a camera at eyeVec, pointed at centerVec.
Multiplies the provided 4x4 matrices together from left to right.
Returns the inverse of the given 4x4 matrix or throws if it is not invertible.
Returns a new 4x4 matrix representing a rotation around the provided vector.
Returns a new 4x4 matrix representing a rotation around the provided vector. Rotation is provided redundantly as both sin and cos values. This rotate can be used when you already have the cosAngle and sinAngle values so you don't have to atan(cos/sin) to call roatated() which expects an angle in radians. This does no checking! Behavior for invalid sin or cos values or non-normalized axis vectors is incorrect. Prefer rotated().
Returns a new 4x4 matrix representing a scale by the provided vector.
Returns a new 4x4 matrix that sets up a 3D perspective view from a given camera.
Returns a new 4x4 matrix representing a translation by the provided vector.
Returns a new 4x4 matrix that is the transpose of this 4x4 matrix.