Data Structures | Functions
ai_matrix.h File Reference

Matrix math type and methods. More...

#include "ai_vector.h"
#include "ai_api.h"
#include "ai_matrix_private.h"
#include <cstring>
#include <stdint.h>

Go to the source code of this file.

Data Structures

struct  AtMatrix
 

Functions

AI_API AI_DEVICE AtMatrix AiM4Identity ()
 Create an identity matrix. More...
 
AI_API AtMatrix AiM4Translation (const AtVector &t)
 Create a translation matrix from a translation vector. More...
 
AI_API AI_DEVICE AtMatrix AiM4RotationX (float x)
 Create a X-axis rotation matrix. More...
 
AI_API AI_DEVICE AtMatrix AiM4RotationY (float y)
 Create a Y-axis rotation matrix. More...
 
AI_API AI_DEVICE AtMatrix AiM4RotationZ (float z)
 Create a Z-axis rotation matrix. More...
 
AI_API AtMatrix AiM4Scaling (const AtVector &s)
 Create a scaling matrix from a scaling vector. More...
 
AI_API AI_DEVICE AtMatrix AiM4Frame (const AtVector &o, const AtVector &u, const AtVector &v, const AtVector &w)
 Create a matrix that transforms into a new coordinate frame. More...
 
AI_API AI_DEVICE AtVector AiM4PointByMatrixMult (const AtMatrix &m, const AtVector &pin)
 Left-multiply a point by a matrix. More...
 
AI_API AI_DEVICE AtHPoint AiM4HPointByMatrixMult (const AtMatrix &m, const AtHPoint &pin)
 Left-multiply a 4D point by a matrix. More...
 
AI_API AI_DEVICE AtVector AiM4VectorByMatrixMult (const AtMatrix &m, const AtVector &vin)
 Left-multiply a vector by a matrix. More...
 
AI_API AI_DEVICE AtVector AiM4VectorByMatrixTMult (const AtMatrix &m, const AtVector &vin)
 Right-multiply a vector by a matrix. More...
 
AI_API AI_DEVICE AtMatrix AiM4Mult (const AtMatrix &ma, const AtMatrix &mb)
 Multiply two matrices. More...
 
AI_API AI_DEVICE AtMatrix AiM4Transpose (const AtMatrix &min)
 Calculate the transpose of a matrix. More...
 
AI_API AI_DEVICE AtMatrix AiM4Invert (const AtMatrix &min)
 Calculate the inverse of a matrix. More...
 
AI_API AI_PURE float AiM4Determinant (const AtMatrix &m)
 Determinant of a matrix. More...
 
AI_API AI_DEVICE AtMatrix AiM4Lerp (float t, const AtMatrix &ma, const AtMatrix &mb)
 Linear interpolation of two matrices. More...
 
AI_API AI_PURE bool AiM4IsIdentity (const AtMatrix &m)
 Is this an identity matrix? More...
 
AI_API AI_PURE bool AiM4IsSingular (const AtMatrix &m)
 Is this a singular matrix? More...
 

Detailed Description

Matrix math type and methods.


© 2020 Autodesk, Inc. · All rights reserved · www.arnoldrenderer.com