a}5.0.0f4ţ˙˙˙s˙8-l'€Łć„hŒÎA,Œ€7€˙˙˙˙€Ś€˛€Ő€ ހ.€†€Ä€ ހ.€H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ H€ę€˙˙˙˙ €1€1€˙˙˙˙ @ހ€Q€j€ń€(˙˙˙˙€1€1€˙˙˙˙€ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ.€y€< ހ.€ހCH€T˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€`˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&H€l˙˙˙˙'€1€1€˙˙˙˙(@ހ€)Q€j€*L€{+PPtrm_FileIDm_PathIDm_DefaultReferencesm_Iconm_ExecutionOrderm_ClassNamem_Namespacem_AssemblyNamem_IsEditorScriptČ0ĹňĂôL.`?^Ů0D7€˙˙˙˙€Ś€˛€Ѐڀڀڀ#Ś€+H€3˙˙˙˙€1€1€˙˙˙˙@ހ€ Q€j€ ™€< Ś€H H€Z˙˙˙˙ €1€1€˙˙˙˙@ހ€Q€j€Ѐgڀڀڀ#Ś€+v~ € €– €Ÿ €¨ €ą €ş €Ă €Ě €Ő €Ţ  €ç! €ń" €ű# €$ €% €&Ő€#˙˙˙˙'€1€1€˙˙˙˙(€ހ€)H€j€˙˙˙˙*€1€1€˙˙˙˙+@ހ€,Q€j€-™€*.ހ8/AssetMetaDataguiddata[0]data[1]data[2]data[3]pathNametimeCreatedoriginalChangesetoriginalNameoriginalParentHash128originalDigestbytes[0]bytes[1]bytes[2]bytes[3]bytes[4]bytes[5]bytes[6]bytes[7]bytes[8]bytes[9]bytes[10]bytes[11]bytes[12]bytes[13]bytes[14]bytes[15]labelsassetStoreReflicenseType z{ď@îČă5^(H'7€˙˙˙˙€Ś€˛€ Ő€ ހ#.€,†€Ä€ ހ#.€,H€Ť€˙˙˙˙€1€1€˙˙˙˙ @ހ€ Q€j€ Ő€5˙˙˙˙ €1€1€˙˙˙˙ €ހ€€j€˙˙˙˙€H€›€˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€y€ € ހ#.€, €I@ž€X @ހ#.€,H€]˙˙˙˙€1€1€˙˙˙˙@ހ€Q€j€H€h˙˙˙˙€1€1€˙˙˙˙ @ހ€!Q€j€"H€z˙˙˙˙#€1€1€˙˙˙˙$@ހ€%Q€j€&MonoImporterPPtrm_FileIDm_PathIDm_DefaultReferencesexecutionOrdericonm_UserDatam_AssetBundleNamem_AssetBundleVariant˙˙@  ˙˙ŕyŻĐ­ ss˙˙.wNţĄGJ­qVí˝Œ16Assets/LeapMotion/Scripts/Utils/LeapUnityExtensions.csLeapUnityExtensions) /******************************************************************************\ * Copyright (C) Leap Motion, Inc. 2011-2014. * * Leap Motion proprietary. Licensed under Apache 2.0 * * Available at http://www.apache.org/licenses/LICENSE-2.0.html * \******************************************************************************/ using UnityEngine; using System.Collections; using Leap; namespace Leap { // Extension to the unity Vector class. // Provides converting points and directions into Unity scene space. public static class UnityVectorExtension { // Leap coordinates are in mm and Unity is in meters. So scale by 1000. public const float INPUT_SCALE = 0.001f; public static readonly Vector3 Z_FLIP = new Vector3(1, 1, -1); // For directions. public static Vector3 ToUnity(this Vector leap_vector, bool mirror = false) { if (mirror) return ToVector3(leap_vector); return FlipZ(ToVector3(leap_vector)); } // For positions and scaled vectors. public static Vector3 ToUnityScaled(this Vector leap_vector, bool mirror = false) { if (mirror) return INPUT_SCALE * ToVector3(leap_vector); return INPUT_SCALE * FlipZ(ToVector3(leap_vector)); } private static Vector3 FlipZ(Vector3 vector) { return Vector3.Scale(vector, Z_FLIP); } private static Vector3 ToVector3(Vector vector) { return new Vector3(vector.x, vector.y, vector.z); } } // Extension to the unity Matrix class. // Provides conversions to Quaternion and translations. public static class UnityMatrixExtension { public static readonly Vector LEAP_UP = new Vector(0, 1, 0); public static readonly Vector LEAP_FORWARD = new Vector(0, 0, -1); public static readonly Vector LEAP_ORIGIN = new Vector(0, 0, 0); public static Quaternion Rotation(this Matrix matrix, bool mirror = false) { Vector3 up = matrix.TransformDirection(LEAP_UP).ToUnity(mirror); Vector3 forward = matrix.TransformDirection(LEAP_FORWARD).ToUnity(mirror); return Quaternion.LookRotation(forward, up); } public static Vector3 Translation(this Matrix matrix, bool mirror = false) { return matrix.TransformPoint(LEAP_ORIGIN).ToUnityScaled(mirror); } } } LeapUnityExtensionsAssembly-CSharp.dll