Meta SDK2 Beta  2.7.0
Meta.TypeUtilities Class Reference

Static Public Member Functions

static Vector3 ToVector3 (this types.fbs.Vector3f vec)
 Convertion util. From: types.fbs.Vec3T (flatbuffers type) To: UnityEngine.Vector3 More...
 
static Quaternion ToQuaternion (this types.fbs.Quaterniond quat)
 Convertion util. From: types.fbs.Quaternion (flatbuffers type) To: UnityEngine.Quaternion More...
 
static Quaternion QuaternionFromDouble (double[] iQuat)
 Convert specified array of 4 to quaternion. More...
 
static void FloatToVector3 (float[] data, ref Vector3 vector)
 Float to vector 3. More...
 
static Vector3 FloatToVector3 (float[] data)
 Float to vector 3. More...
 
static void FloatToVector2 (float[] data, ref Vector2 vector)
 
static Vector2 FloatToVector2 (float[] data)
 
static bool CppBoolToCsBool (byte val)
 
static byte CsBoolToCppBool (bool val)
 
static Matrix4x4 MatrixFromArray (double[] vals)
 
static Quaternion FromDouble (double[] iQuat)
 Convert specified array of 4 to quaternion. More...
 

Member Function Documentation

◆ CppBoolToCsBool()

static bool Meta.TypeUtilities.CppBoolToCsBool ( byte  val)
inlinestatic

◆ CsBoolToCppBool()

static byte Meta.TypeUtilities.CsBoolToCppBool ( bool  val)
inlinestatic

◆ FloatToVector2() [1/2]

static void Meta.TypeUtilities.FloatToVector2 ( float []  data,
ref Vector2  vector 
)
inlinestatic

◆ FloatToVector2() [2/2]

static Vector2 Meta.TypeUtilities.FloatToVector2 ( float []  data)
inlinestatic

◆ FloatToVector3() [1/2]

static void Meta.TypeUtilities.FloatToVector3 ( float []  data,
ref Vector3  vector 
)
inlinestatic

Float to vector 3.

Parameters
dataThe data.
vectorThe vector.

◆ FloatToVector3() [2/2]

static Vector3 Meta.TypeUtilities.FloatToVector3 ( float []  data)
inlinestatic

Float to vector 3.

Parameters
dataThe data.
Returns
A Vector3.

◆ FromDouble()

static Quaternion Meta.TypeUtilities.FromDouble ( double []  iQuat)
inlinestatic

Convert specified array of 4 to quaternion.

Parameters
iQuatarray of 4 doubles.
Returns
quaternion.

◆ MatrixFromArray()

static Matrix4x4 Meta.TypeUtilities.MatrixFromArray ( double []  vals)
inlinestatic

◆ QuaternionFromDouble()

static Quaternion Meta.TypeUtilities.QuaternionFromDouble ( double []  iQuat)
inlinestatic

Convert specified array of 4 to quaternion.

Parameters
iQuatarray of 4 doubles.
Returns
quaternion.

◆ ToQuaternion()

static Quaternion Meta.TypeUtilities.ToQuaternion ( this types.fbs.Quaterniond  quat)
inlinestatic

Convertion util. From: types.fbs.Quaternion (flatbuffers type) To: UnityEngine.Quaternion

Parameters
vectypes.fbs.Quaternion (flatbuffers type) input
Returns
Converted UnityEngine.Quaternion

◆ ToVector3()

static Vector3 Meta.TypeUtilities.ToVector3 ( this types.fbs.Vector3f  vec)
inlinestatic

Convertion util. From: types.fbs.Vec3T (flatbuffers type) To: UnityEngine.Vector3

Parameters
vectypes.fbs.Vec3T (flatbuffers type) input
Returns
Converted UnityEngine.Vector3