Added Projection to ConvertTo<T> and CreateFrom<T>
This commit is contained in:
parent
346efd29e0
commit
2d60b9c6e4
@ -92,6 +92,9 @@ public partial class VariantUtils
|
|||||||
if (typeof(T) == typeof(Transform2D))
|
if (typeof(T) == typeof(Transform2D))
|
||||||
return CreateFromTransform2D(UnsafeAs<Transform2D>(from));
|
return CreateFromTransform2D(UnsafeAs<Transform2D>(from));
|
||||||
|
|
||||||
|
if (typeof(T) == typeof(Projection))
|
||||||
|
return CreateFromProjection(UnsafeAs<Projection>(from));
|
||||||
|
|
||||||
if (typeof(T) == typeof(Vector3))
|
if (typeof(T) == typeof(Vector3))
|
||||||
return CreateFromVector3(UnsafeAs<Vector3>(from));
|
return CreateFromVector3(UnsafeAs<Vector3>(from));
|
||||||
|
|
||||||
@ -293,6 +296,9 @@ public partial class VariantUtils
|
|||||||
if (typeof(T) == typeof(Transform3D))
|
if (typeof(T) == typeof(Transform3D))
|
||||||
return UnsafeAsT(ConvertToTransform3D(variant));
|
return UnsafeAsT(ConvertToTransform3D(variant));
|
||||||
|
|
||||||
|
if (typeof(T) == typeof(Projection))
|
||||||
|
return UnsafeAsT(ConvertToProjection(variant));
|
||||||
|
|
||||||
if (typeof(T) == typeof(Vector4))
|
if (typeof(T) == typeof(Vector4))
|
||||||
return UnsafeAsT(ConvertToVector4(variant));
|
return UnsafeAsT(ConvertToVector4(variant));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user