GvrMathHelpers

Helper functions to perform common math operations for Gvr.

Summary

Public static functions

ConvertFloatArrayToMatrix(float[] floatArray)
Matrix4x4
Converts a float array of length 16 into a column-major 4x4 matrix.
EaseOutCubic(float min, float max, float value)
float
GetIntersectionPosition(Camera cam, RaycastResult raycastResult)
Vector3
NormalizedCartesianToSpherical(Vector3 cartCoords)
Vector2

Public static functions

ConvertFloatArrayToMatrix

Matrix4x4 ConvertFloatArrayToMatrix(
  float[] floatArray
)

Converts a float array of length 16 into a column-major 4x4 matrix.

EaseOutCubic

float EaseOutCubic(
  float min,
  float max,
  float value
)

GetIntersectionPosition

Vector3 GetIntersectionPosition(
  Camera cam,
  RaycastResult raycastResult
)

NormalizedCartesianToSpherical

Vector2 NormalizedCartesianToSpherical(
  Vector3 cartCoords
)