Class ARCamera
- Namespace
- KmaxXR
- Assembly
- Kmax.XR.dll
public class ARCamera : MonoBehaviour
- Inheritance
-
ARCamera
Constructors
ARCamera()
Fields
ImageH
Field Value
- float
ImageW
Field Value
- float
arRt
public RenderTexture arRt
Field Value
- RenderTexture
depthCam
Field Value
- Camera
depthRt
public RenderTexture depthRt
Field Value
- RenderTexture
Methods
CalculateProjectionMatrixFromCameraMatrixValues(float, float, float, float, float, float, float, float)
public Matrix4x4 CalculateProjectionMatrixFromCameraMatrixValues(float fx, float fy, float cx, float cy, float width, float height, float near, float far)
Parameters
fx
float
fy
float
cx
float
cy
float
width
float
height
float
near
float
far
float
Returns
- Matrix4x4
public Quaternion ExtractRotationFromMatrix(ref Matrix4x4 matrix)
Parameters
matrix
Matrix4x4
Returns
- Quaternion
public Vector3 ExtractScaleFromMatrix(ref Matrix4x4 matrix)
Parameters
matrix
Matrix4x4
Returns
- Vector3
public Vector3 ExtractTranslationFromMatrix(ref Matrix4x4 matrix)
Parameters
matrix
Matrix4x4
Returns
- Vector3
GetUV(Vector3)
public Vector4 GetUV(Vector3 pos)
Parameters
pos
Vector3
Returns
- Vector4
PoseCallback(Pose)
public void PoseCallback(KmaxAR.Pose p)
Parameters
p
KmaxAR.Pose
public void SetTransformFromMatrix(Transform transform, ref Matrix4x4 matrix)
Parameters
transform
Transform
matrix
Matrix4x4