Transformation¶
A 4*4 Transformation Matrix is provided to convert from Site coordinates to Range Model coordinates. The Transformation is of the form:
T = [
[ b, 0, -a, d ],
[ 0, 1, 0, k ],
[ a, 0, b, c ],
[ 0, 0, 0, 1 ]
]
and used in the following manner:
[x', z', y', 1] = T * [x, y ,z , 1]
x' = b.x -a.z + d
y' = y + k
z' = ax + bz + c
The endpoint for the transformation is returned by the rangeinfo property 'modelTransformationDownloadUrl'
GET /api/rangeinfo
Host: https://localsite.trackmanrange.com
In the following example, a 4*4 identity matrix is returned by the endpoint:
{
"transformation": [
[ 1, 0, 0, 0 ],
[ 0, 1, 0, 0 ],
[ 0, 0, 1, 0 ],
[ 0, 0, 0, 1 ]
]
}
Note
You might need to transpose the matrix in order to use it.