Tilt Five™ Unity API  1.4.1
TiltFive.DisplayHelper Class Reference

Static Public Member Functions

static Matrix4x4 Frustum (float L, float R, float B, float T, float n, float f)
 

Static Private Member Functions

static Matrix4x4 Frustum (ARProjectionFrustum f)
 

Detailed Description

Definition at line 394 of file Display.cs.

Member Function Documentation

◆ Frustum() [1/2]

static Matrix4x4 TiltFive.DisplayHelper.Frustum ( ARProjectionFrustum  f)
staticprivate

Definition at line 396 of file Display.cs.

397  {
398  return Frustum(f.m_Left, f.m_Right, f.m_Bottom, f.m_Top, f.m_Near, f.m_Far);
399  }
static Matrix4x4 Frustum(ARProjectionFrustum f)
Definition: Display.cs:396

References TiltFive.ARProjectionFrustum.m_Bottom, TiltFive.ARProjectionFrustum.m_Far, TiltFive.ARProjectionFrustum.m_Left, TiltFive.ARProjectionFrustum.m_Near, TiltFive.ARProjectionFrustum.m_Right, and TiltFive.ARProjectionFrustum.m_Top.

◆ Frustum() [2/2]

static Matrix4x4 TiltFive.DisplayHelper.Frustum ( float  L,
float  R,
float  B,
float  T,
float  n,
float  f 
)
static

Definition at line 406 of file Display.cs.

407  {
408  Matrix4x4 m = new Matrix4x4();
409 
410  m[0, 0] = (2 * n) / (R - L);
411  m[1, 1] = (2 * n) / (T - B);
412  m[0, 2] = (R + L) / (R - L);
413  m[1, 2] = (T + B) / (T - B);
414  m[2, 2] = -(f + n) / (f - n);
415  m[2, 3] = -(2 * f * n) / (f - n);
416  m[3, 2] = -1.0f;
417  m[3, 3] = 0.0f;
418 
419  return m;
420  }

The documentation for this class was generated from the following file: