1using System.Diagnostics;
3using Unity.Mathematics;
16 internal struct CesiumIntMat2x2
24 public CesiumIntVec2 c0
28 public CesiumIntVec2 c1
33 public CesiumIntMat2x2(CesiumIntVec2 v0, CesiumIntVec2 v1)
35 Debug.Assert(v0.componentType == v1.componentType);
36 this.componentType = v0.componentType;
40 public CesiumIntMat2x2(int2 v0, int2 v1)
43 this.c0 =
new CesiumIntVec2(v0);
44 this.c1 =
new CesiumIntVec2(v1);
47 public CesiumIntVec2
this[
int index]
58 throw new System.IndexOutOfRangeException();
73 internal struct CesiumIntMat3x3
81 public CesiumIntVec3 c0
85 public CesiumIntVec3 c1
89 public CesiumIntVec3 c2
94 public CesiumIntMat3x3(CesiumIntVec3 v0, CesiumIntVec3 v1, CesiumIntVec3 v2)
96 Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType);
97 this.componentType = v0.componentType;
103 public CesiumIntMat3x3(int3 v0, int3 v1, int3 v2)
106 this.c0 =
new CesiumIntVec3(v0);
107 this.c1 =
new CesiumIntVec3(v1);
108 this.c2 =
new CesiumIntVec3(v2);
111 public CesiumIntVec3
this[
int index]
124 throw new System.IndexOutOfRangeException();
139 internal struct CesiumIntMat4x4
147 public CesiumIntVec4 c0
151 public CesiumIntVec4 c1
155 public CesiumIntVec4 c2
159 public CesiumIntVec4 c3
164 public CesiumIntMat4x4(CesiumIntVec4 v0, CesiumIntVec4 v1, CesiumIntVec4 v2, CesiumIntVec4 v3)
166 Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType && v2.componentType == v3.componentType);
167 this.componentType = v0.componentType;
174 public CesiumIntMat4x4(int4 v0, int4 v1, int4 v2, int4 v3)
177 this.c0 =
new CesiumIntVec4(v0);
178 this.c1 =
new CesiumIntVec4(v1);
179 this.c2 =
new CesiumIntVec4(v2);
180 this.c3 =
new CesiumIntVec4(v3);
183 public CesiumIntVec4
this[
int index]
198 throw new System.IndexOutOfRangeException();
212 internal struct CesiumUintMat2x2
220 public CesiumUintVec2 c0
224 public CesiumUintVec2 c1
229 public CesiumUintMat2x2(CesiumUintVec2 v0, CesiumUintVec2 v1)
231 Debug.Assert(v0.componentType == v1.componentType);
232 this.componentType = v0.componentType;
237 public CesiumUintMat2x2(uint2 v0, uint2 v1)
240 this.c0 =
new CesiumUintVec2(v0);
241 this.c1 =
new CesiumUintVec2(v1);
244 public CesiumUintVec2
this[
int index]
255 throw new System.IndexOutOfRangeException();
269 internal struct CesiumUintMat3x3
277 public CesiumUintVec3 c0
281 public CesiumUintVec3 c1
285 public CesiumUintVec3 c2
290 public CesiumUintMat3x3(CesiumUintVec3 v0, CesiumUintVec3 v1, CesiumUintVec3 v2)
292 Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType);
293 this.componentType = v0.componentType;
299 public CesiumUintMat3x3(uint3 v0, uint3 v1, uint3 v2)
302 this.c0 =
new CesiumUintVec3(v0);
303 this.c1 =
new CesiumUintVec3(v1);
304 this.c2 =
new CesiumUintVec3(v2);
307 public CesiumUintVec3
this[
int index]
320 throw new System.IndexOutOfRangeException();
334 internal struct CesiumUintMat4x4
342 public CesiumUintVec4 c0
346 public CesiumUintVec4 c1
350 public CesiumUintVec4 c2
354 public CesiumUintVec4 c3
359 public CesiumUintMat4x4(CesiumUintVec4 v0, CesiumUintVec4 v1, CesiumUintVec4 v2, CesiumUintVec4 v3)
361 Debug.Assert(v0.componentType == v1.componentType && v1.componentType == v2.componentType && v2.componentType == v3.componentType);
362 this.componentType = v0.componentType;
369 public CesiumUintMat4x4(uint4 v0, uint4 v1, uint4 v2, uint4 v3)
372 this.c0 =
new CesiumUintVec4(v0);
373 this.c1 =
new CesiumUintVec4(v1);
374 this.c2 =
new CesiumUintVec4(v2);
375 this.c3 =
new CesiumUintVec4(v3);
378 public CesiumUintVec4
this[
int index]
393 throw new System.IndexOutOfRangeException();
CesiumMetadataComponentType
Identifies the component type of a property in EXT_structural_metadata.