MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / get_position

Function get_position

src/Components/WorldMap/display.js:134–139  ·  view source on GitHub ↗
([x, y])

Source from the content-addressed store, hash-verified

132 const coord_y = [-coord_x[1], coord_x[0]];
133
134 function get_position([x, y]) {
135 return [
136 flight_end_position[0] + coord_x[0] * x + coord_y[0] * y,
137 flight_end_position[1] + coord_x[1] * x + coord_y[1] * y
138 ];
139 }
140
141 const control_point_1_coord = get_position([260, 40]);
142 const control_point_2_coord = get_position([100, 40]);

Callers 1

drawFlightFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected