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

◆ DrawArrow()

Shape ComponentEnergyManager::DrawArrow ( vector from,
vector to,
float size = 0.5,
int color = 0xFFFFFFFF,
float flags = 0 )
inlineprotected

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

154 {
155 vector dir = to - from;
156 dir.Normalize();
157 vector dir1 = dir * size;
158 size = size * 0.5;
159
160 vector dir2 = dir.Perpend() * size;
161
162 vector pts[5];
163 pts[0] = from;
164 pts[1] = to;
165 pts[2] = to - dir1 - dir2;
166 pts[3] = to - dir1 + dir2;
167 pts[4] = to;
168
169 return Shape.CreateLines(color, flags, pts, 5);
170 }
proto float Normalize()
Normalizes vector. Returns length.
vector Perpend()
Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector ...
Определения EnConvert.c:222
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

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

Используется в DebugUpdate().