blob: 10f7944b53e9702cbfb22a81bb1117a369cd2024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
using UnityEngine;
using UnityEngine.UIElements;
namespace GestureManager.Scripts.Core
{
/**
* Hi, you're a curious one!
*
* What you're looking at are some of the methods of my Unity Libraries.
* They do not contains all the methods otherwise the UnityPackage would have been so much bigger.
*
* P.S: Gmg stands for GestureManager~
*/
public static class GmgVisualMesh
{
public static class CenterRelative
{
public static Vector3 PositionOf(float x, float y, float w, float h) => new Vector3((x / 2 + 0.5f) * w, (y / 2 + 0.5f) * h, Vertex.nearZ);
}
}
}
|