PSYQO SDK
Soft Math
soft-math.hh · the soft math module
Module
the soft math module.
Include this module
C++ include
#include "psyqo/soft-math.hh"Types
Functions and methods
crossProductVec3Compute the cross product of two 3D vectors.FunctionfastNormalizeVec3Normalizes a 3D vector, using a faster but less accurate algorithm.FunctiongenerateRotationMatrix33Generate a rotation matrix for a given angle and axis.FunctioninverseSquareRootComputes the inverse square root of a fixed point number, given an approximative hint.FunctionmatrixDeterminant3Compute the determinant of a 3x3 matrix.FunctionmatrixVecMul3Performs `matrix vec mul3` as part of the soft math module.FunctionmatrixVecMul3xyPerforms `matrix vec mul3xy` as part of the soft math module.FunctionmatrixVecMul3zMultiply a 3x3 matrix by a 3D vector, returning only the z component.FunctionmultiplyMatrix33Multiply two 3x3 matrices.FunctionnormalizeVec3Normalizes a 3D vector.FunctionnormOfVec3Computes the norm of a 3D vector.FunctionprojectProjects a 3D point onto a 2D plane.FunctionscaleMatrix33Scale a 3x3 matrix by a scalar.FunctionsquareRootComputes the square root of a fixed point number, given an approximative hint.Function