| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| |
|
| | #ifndef THIRD_PARTY_MUJOCO_SRC_RENDER_RENDER_UTIL_ |
| | #define THIRD_PARTY_MUJOCO_SRC_RENDER_RENDER_UTIL_ |
| |
|
| | #include <mujoco/mjexport.h> |
| | #include <mujoco/mjrender.h> |
| |
|
| | #if defined(__cplusplus) |
| | extern "C" { |
| | #endif |
| |
|
| | |
| | void mjr_makeNormal(float* normal, const float* p1, const float* p2, const float* p3); |
| |
|
| | |
| | void mjr_setf4(float* vec, float f0, float f1, float f2, float f3); |
| |
|
| | |
| | void mjr_setf3(float* vec, float f0, float f1, float f2); |
| |
|
| | |
| | void mjr_mulMat44(float* res, const float* A, const float* B); |
| |
|
| | |
| | void mjr_getrow4(float* res, const float* A, int r); |
| |
|
| | |
| | void mjr_crossVec(float* a, const float* b, const float* c); |
| |
|
| | |
| | void mjr_normalizeVec(float* v); |
| |
|
| | |
| | void mjr_orthoVec(float* res, const float* v); |
| |
|
| | |
| | float mjr_dotVec(const float* a, const float* b); |
| |
|
| | |
| | void mjr_multiply4(float* res, const float* mat, const float* vec); |
| |
|
| | |
| | void mjr_lookAt(const float* eye, const float* forward, const float* up); |
| |
|
| | |
| | void mjr_perspective(float fovy, float aspect, float znear, float zfar); |
| |
|
| | |
| | void mjr_reflect(const float* pos, const float* mat); |
| |
|
| | |
| | void mjr_transform(const float* translate, const float* rotate, float scale); |
| |
|
| | |
| | MJAPI int mjr_findRect(int x, int y, int nrect, const mjrRect* rect); |
| |
|
| | #if defined(__cplusplus) |
| | } |
| | #endif |
| | #endif |
| |
|