getRayFromCoordinate
getRayFromCoordinate(
x: number,
y: number,
): Promise<Ray>Parameters
Description
Type
await modelApi.getRayFromCoordinate(0.5, 0.5); // Center of canvas{
"start": {
"x": 426.70406480133295,
"y": -1117.188191256327,
"z": 840.8804717098991
},
"direction": {
"x": -0.33227362438885555,
"y": 0.8507690937811196,
"z": -0.4071685002579967
}
}Last updated