| x#, y#, z# = компоненты вектора в 3d - пространстве source_entity = указатель объекта или 0 для всего 3d-мира dest_entity = указатель объекта-цели или 0 для всего 3d-мира |
| Выполняет преобразования между системами координат. После ее использования командами TFormedX (), TFormedY () и TFormedZ () читаются новые
координаты. Смотрите EntityX(), где рассказано подробнее о локальных координатах. Представьте сферу, построенную командой CreateSphere (). 'Северный полюс' - в координатах (0,1,0). |
|
; TFormPoint example
Graphics3D 640, 480 s = CreateSphere() ; center at (0,0,0) north pole at (0,1,0) MoveEntity s, 1,2,3 ; center at (1,2,3) north pole at (1,2+1,3) ScaleEntity s, 10,10,10 ; center at (1,2,3) north pole at (1,2+10,3) ; Now verify that the north pole is at (1,12,3) in the 3d world TFormPoint 0,1,0, s,0 ; north pole transformed from sphere to world message$ = "North pole is at ( " message = message + TFormedX() + ", " + TFormedY() + ", " + TFormedZ() + " )" Text 180, 200, message Flip WaitKey() End |