Ejemplo n.º 1
0
        public static GMPoint3D Get(Point3D point)
        {
            GMPoint3D gmpoint = new GMPoint3D();

            gmpoint.x = point.x;
            gmpoint.y = point.y;
            gmpoint.z = point.z;
            return(gmpoint);
        }
Ejemplo n.º 2
0
        public static Vector3 Get(GMPoint3D point)
        {
            Vector3 vec = new Vector3();

            vec.x = point.x / 10000f;
            vec.y = point.y / 10000f;
            vec.z = point.z / 10000f;
            return(vec);
        }
Ejemplo n.º 3
0
        public static Point3D Get(GMPoint3D gmpoint)
        {
            Point3D point = new Point3D(0, 0, 0);

            if (gmpoint != null)
            {
                point = new Point3D(gmpoint.x, gmpoint.y, gmpoint.z);
            }
            return(point);
        }
Ejemplo n.º 4
0
        public static GMPoint3D Get(Vector3 vec)
        {
            GMPoint3D point = new GMPoint3D();

            point.x = (int)(vec.x * 10000);
            point.y = (int)(vec.y * 10000);
            point.z = (int)(vec.z * 10000);

            return(point);
        }
Ejemplo n.º 5
0
        public static Vector3 Get(GMPoint3D point)
        {
            Vector3 vec = Vector3.zero;

            if (point != null)
            {
                vec.x = point.x / 10000f;
                vec.y = point.y / 10000f;
                vec.z = point.z / 10000f;
            }


            return(vec);
        }
Ejemplo n.º 6
0
        public static Point3D Get(GMPoint3D gmpoint)
        {
            Point3D point = new Point3D(gmpoint.x, gmpoint.y, gmpoint.z);

            return(point);
        }