APIExtend Class

Description

Extend EasyAR Sense API and Unity API for convenience to do operations like data conversion.


Methods

ToUnityMatrix

C#

public static Matrix4x4 ToUnityMatrix(this Matrix44F matrix44F)

Convert Matrix44F to Matrix4x4 .

ToEasyARMatrix

C#

public static Matrix44F ToEasyARMatrix(this Matrix4x4 matrix4x4)

Convert Matrix4x4 to Matrix44F .

ToUnityPose

C#

public static Pose ToUnityPose(this Matrix44F pose)

Convert Matrix44F to Pose and transform to Unity coordinate system. pose must represent a Pose .

ToEasyARAxisSystem

C#

public static Pose ToEasyARAxisSystem(this Pose pose)

Transform from Unity axis system to EasyAR axis system.

ToUnityAxisSystem

C#

public static Pose ToUnityAxisSystem(this Pose pose)

Transform from EasyAR axis system to Unity axis system.

ToEasyARPose

C#

public static Matrix44F ToEasyARPose(this Pose pose)

Convert Pose to Matrix44F and transform to EasyAR coordinate system.

ToEasyARVector

C#

public static Vec2F ToEasyARVector(this Vector2 vec2)

Convert Vector2 to Vec2F .

ToEasyARVector

C#

public static Vec3F ToEasyARVector(this Vector3 vec3)

Convert Vector3 to Vec3F .

ToEasyARVector

C#

public static Vec4F ToEasyARVector(this Vector4 vec4)

Convert Vector4 to Vec4F .

ToEasyARVector

C#

public static Vec4F ToEasyARVector(this Quaternion vec4)

Convert Quaternion to Vec4F .

ToEasyARVector

C#

public static Vec2I ToEasyARVector(this Vector2Int vec2)

Convert Vector2Int to Vec2I .

ToUnityVector

C#

public static Vector2 ToUnityVector(this Vec2F vec2)

Convert Vec2F to Vector2 .

ToUnityVector

C#

public static Vector3 ToUnityVector(this Vec3F vec3)

Convert Vec3F to Vector3 .

ToUnityVector

C#

public static Vector2Int ToUnityVector(this Vec2I vec2)

Convert Vec2I to Vector2Int .