Class MathExtension
Extend Unity mathematics structs.
Namespace: Unity.Geospatial.HighPrecision
Assembly: solution.dll
Syntax
public static class MathExtension
Methods
ToDouble3(Vector3)
Convert a Unity Vector3 to a double3 instance.
Declaration
public static double3 ToDouble3(this Vector3 vector)
Parameters
Type | Name | Description |
---|---|---|
Vector3 | vector | Point to convert. |
Returns
Type | Description |
---|---|
double3 | The convert point. |
ToMatrix4x4(double4x4)
Convert a double4x4 instance to a Unity Vector3 instance.
Declaration
public static Matrix4x4 ToMatrix4x4(this double4x4 matrix)
Parameters
Type | Name | Description |
---|---|---|
double4x4 | matrix | Matrix to convert. |
Returns
Type | Description |
---|---|
Matrix4x4 | The convert matrix. |
ToVector3(double3)
Convert a double3 instance to a Unity Vector3 instance.
Declaration
public static Vector3 ToVector3(this double3 vector)
Parameters
Type | Name | Description |
---|---|---|
double3 | vector | Point to convert. |
Returns
Type | Description |
---|---|
Vector3 | The convert point. |