BNM 2.5.1
 
Loading...
Searching...
No Matches
BNM::Structures::Unity Namespace Reference

Namespace that holds Unity math and helper structs. More...

Classes

struct  Color
 
struct  Color32
 
struct  FrustumPlanes
 
struct  Matrix3x3
 
struct  Matrix4x4
 
struct  Quaternion
 
struct  Ray
 
struct  RaycastHit
 
struct  RaycastHit2D
 
struct  Rect
 
struct  Vector2
 
struct  Vector2Int
 
struct  Vector3
 
struct  Vector3Int
 
struct  Vector4
 

Functions

void QuaternionToMatrix (const Quaternion &q, struct Matrix4x4 &m)
 
bool InvertMatrix4x4_Full (const float *m, float *out)
 
Matrix4x4 operator* (const Matrix4x4 &lhs, const Matrix4x4 &rhs)
 
void MultiplyMatrices3x4 (const Matrix4x4 &lhs, const Matrix4x4 &rhs, Matrix4x4 &res)
 
void MultiplyMatrices2D (const Matrix4x4 &lhs, const Matrix4x4 &rhs, Matrix4x4 &res)
 
float ComputeUniformScale (const Matrix4x4 &matrix)
 
template<class T>
T * Stride (T *p, size_t offset)
 
bool CompareApproximately (const Matrix4x4 &lhs, const Matrix4x4 &rhs, float dist)
 
void TransformPoints3x3 (const Matrix4x4 &matrix, const Vector3 *in, Vector3 *out, int count)
 
void TransformPoints3x4 (const Matrix4x4 &matrix, const Vector3 *in, Vector3 *out, int count)
 
void TransformPoints3x3 (const Matrix4x4 &matrix, const Vector3 *in, size_t inStride, Vector3 *out, size_t outStride, int count)
 
void TransformPoints3x4 (const Matrix4x4 &matrix, const Vector3 *in, size_t inStride, Vector3 *out, size_t outStride, int count)
 
Vector3 operator* (Quaternion lhs, const Vector3 rhs)
 
bool IsFinite (float value)
 

Detailed Description

Namespace that holds Unity math and helper structs.

It contains: Vector2, Vector3, Vector4, Color, Color32, Ray, RaycastHit, RaycastHit2D, Quaternion, Matrix3x3, Matrix4x4.