# 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 .

### 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 .

### 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 .
{"ft_lang_label":"__label__en","ft_lang_prob":0.5555764,"math_prob":0.45034826,"size":355,"snap":"2022-40-2023-06","text_gpt3_token_len":83,"char_repetition_ratio":0.13105413,"word_repetition_ratio":0.0,"special_character_ratio":0.15774648,"punctuation_ratio":0.07692308,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.972706,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2023-01-27T11:26:42Z\",\"WARC-Record-ID\":\"<urn:uuid:6ce8224a-73ee-4794-9a51-8cec6c45b1b4>\",\"Content-Length\":\"28582\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:e76e4409-cae6-43b5-805f-69d8b666bcea>\",\"WARC-Concurrent-To\":\"<urn:uuid:10ed9584-9f78-4882-ad4f-fe6b4c082808>\",\"WARC-IP-Address\":\"52.35.171.73\",\"WARC-Target-URI\":\"https://help.easyar.com/EasyAR%20Sense%20Unity%20Plugin/latest/ApiReference/APIExtend.html\",\"WARC-Payload-Digest\":\"sha1:6MAPJOC7PCKNXZT6QUMB2BQEBWOF4JUD\",\"WARC-Block-Digest\":\"sha1:YNS4LUXOY2GACKXUTID7HAEGBZISLLGQ\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2023/CC-MAIN-2023-06/CC-MAIN-2023-06_segments_1674764494976.72_warc_CC-MAIN-20230127101040-20230127131040-00592.warc.gz\"}"}