DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ CreateBridgeArrow()

static Shape CreateBridgeArrow ( vector from,
vector to,
float size,
int color,
ShapeFlags flags )
static

См. определение в файле EnDebug.c строка 192

193 {
194 vector dir = to - from;
195 dir.Normalize();
196
197 vector dir1 = Vector(0, 0, -size);
198 size = size * 0.5;
199
200 vector dir2 = dir.Perpend() * size;
201
202 vector pts[7];
203 pts[0] = from;
204 pts[1] = from + "0 0 1";
205 pts[2] = to + "0 0 1";
206 pts[3] = to;
207 pts[4] = to - dir1 - dir2;
208 pts[5] = to - dir1 + dir2;
209 pts[6] = to;
210
211 return CreateLines(color, flags, pts, 7);
212 }
proto float Normalize()
Normalizes vector. Returns length.
vector Perpend()
Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector ...
Определения EnConvert.c:209
Определения EnConvert.c:106
static proto native Shape CreateLines(int color, ShapeFlags flags, vector p[], int num)
proto native vector Vector(float x, float y, float z)
Vector constructor from components.

Перекрестные ссылки CreateLines(), vector::Normalize(), vector::Perpend(), Shape и Vector().