📄 matrix.h
字号:
// Copyright (c) 1998 Relic Entertainment Inc.
// Written by Janik Joire
//
// $History: $
#ifndef MATRIX_H
#define MATRIX_H
// General constants
#ifndef PI
#define PI 3.14159265358979323846F
#endif
#ifdef __cplusplus
extern "C" {
#endif
void matInvert(float *c,float* m);
void matInvertEx(float* c,float * m);
void matProduct(float *c,float *a,float *b);
void matVectProduct(float *c,float *a,float *b);
void matCrossProduct(float *c,float *a,float *b);
void matIdentity(float *a);
void matTranslate(float *a,float x, float y, float z);
void matScale(float *a,float x,float y,float z);
void matRotate(float* a,float* axis,float angle);
void matNormalize(float *a);
void matLookAt(float *a,float *aEye,float *aFocus,float *aUp);
void matPerspect(float *a,float fov,float aspect,float cnear,float cfar);
void matFrustum(float *a,float left,float right,float bottom,float top,float cnear,float cfar);
#ifdef __cplusplus
} // extern "C"
#endif
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -