ManoMotion SDK PRO  1.4.8
ManoMotion SDK PRO API documentation
ManoUtils Class Reference

Tools that can be used to get information adapted to the screen size. More...

Inheritance diagram for ManoUtils:

Public Member Functions

Vector3 CalculateScreenPosition (Vector3 Point, float depth)
 Calculates the new position in relation to the screen. More...
 
Vector3 CalculateNewPosition (Vector3 Point, float depth)
 Calculates the new position in relation to the main camera. More...
 
Vector3 CalculateNewPositionSkeletonPosition (Vector3 Point, float depth)
 Calculates the new position in relation to the main camera, for the skleleton Joitns with clamped depth if -1 and 1. More...
 
Vector3 CalculateNewPositionDepth (Vector3 Point, float depth)
 Calculates the new position with depth in relation to the main camera. More...
 
void OrientMeshRenderer (MeshRenderer meshRenderer)
 Properly orients a MeshRenderer in order to be displayed properly More...
 

Data Fields

SupportedOrientation currentOrientation
 

Static Public Attributes

static Action OnOrientationChanged
 

Protected Member Functions

void Awake ()
 

Properties

static ManoUtils Instance [get]
 

Private Member Functions

void Start ()
 
void Update ()
 
void CheckForScreenOrientationChange ()
 Checks for changes on the orientation of the device. More...
 
Vector3 VectorAbs (Vector3 vector)
 Retrieve the absolute values of a Vector3 More...
 

Private Attributes

Vector3 correction_ratio = Vector3.one
 
Camera cam
 

Static Private Attributes

static ManoUtils instance
 

Detailed Description

Tools that can be used to get information adapted to the screen size.

Member Function Documentation

◆ Awake()

void ManoUtils.Awake ( )
inlineprotected

◆ CalculateNewPosition()

Vector3 ManoUtils.CalculateNewPosition ( Vector3  Point,
float  depth 
)
inline

Calculates the new position in relation to the main camera.

Parameters
PointRequires a Vector3 point
depthRequires the float value of depth
Returns

◆ CalculateNewPositionDepth()

Vector3 ManoUtils.CalculateNewPositionDepth ( Vector3  Point,
float  depth 
)
inline

Calculates the new position with depth in relation to the main camera.

Parameters
PointRequires a Vector3 point
depthRequires the float value of depth
Returns

◆ CalculateNewPositionSkeletonPosition()

Vector3 ManoUtils.CalculateNewPositionSkeletonPosition ( Vector3  Point,
float  depth 
)
inline

Calculates the new position in relation to the main camera, for the skleleton Joitns with clamped depth if -1 and 1.

Parameters
PointRequires a Vector3 point
depthRequires the float value of depth
Returns

◆ CalculateScreenPosition()

Vector3 ManoUtils.CalculateScreenPosition ( Vector3  Point,
float  depth 
)
inline

Calculates the new position in relation to the screen.

Parameters
PointRequires a Vector3 point
depthRequires the float value of depth
Returns

◆ CheckForScreenOrientationChange()

void ManoUtils.CheckForScreenOrientationChange ( )
inlineprivate

Checks for changes on the orientation of the device.

◆ OrientMeshRenderer()

void ManoUtils.OrientMeshRenderer ( MeshRenderer  meshRenderer)
inline

Properly orients a MeshRenderer in order to be displayed properly

Parameters
meshRendererMesh renderer.

◆ Start()

void ManoUtils.Start ( )
inlineprivate

◆ Update()

void ManoUtils.Update ( )
inlineprivate

◆ VectorAbs()

Vector3 ManoUtils.VectorAbs ( Vector3  vector)
inlineprivate

Retrieve the absolute values of a Vector3

Returns
The abs.
Parameters
vectorRequires a Vector3 value.

Field Documentation

◆ cam

Camera ManoUtils.cam
private

◆ correction_ratio

Vector3 ManoUtils.correction_ratio = Vector3.one
private

◆ currentOrientation

SupportedOrientation ManoUtils.currentOrientation

◆ instance

ManoUtils ManoUtils.instance
staticprivate

◆ OnOrientationChanged

Action ManoUtils.OnOrientationChanged
static

Property Documentation

◆ Instance

ManoUtils ManoUtils.Instance
staticget

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