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

◆ CreateArrow()

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

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

174 {
175 vector dir = to - from;
176 dir.Normalize();
177 vector dir1 = dir * size;
178 size = size * 0.5;
179
180 vector dir2 = dir.Perpend() * size;
181
182 vector pts[5];
183 pts[0] = from;
184 pts[1] = to;
185 pts[2] = to - dir1 - dir2;
186 pts[3] = to - dir1 + dir2;
187 pts[4] = to;
188
189 return CreateLines(color, flags, pts, 5);
190 }
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)

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