public static GMPoint3D Get(Point3D point) { GMPoint3D gmpoint = new GMPoint3D(); gmpoint.x = point.x; gmpoint.y = point.y; gmpoint.z = point.z; return(gmpoint); }
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); }
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); }
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); }
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); }
public static Point3D Get(GMPoint3D gmpoint) { Point3D point = new Point3D(gmpoint.x, gmpoint.y, gmpoint.z); return(point); }