public XMapping() { ID = -1; Scale = new XVec2(); Offset = new XVec2(); Type = TextureType.Diffuse; }
/// <summary> /// 点乘 /// </summary> /// <param name="a"></param> /// <param name="b"></param> /// <returns></returns> public static float Dot(XVec2 a, XVec2 b) { return(a.x * b.x + a.y * b.y); }