DayZ 1.27
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 строка 150

151 {
152 vector dir = to - from;
153 dir.Normalize();
154 vector dir1 = dir * size;
155 size = size * 0.5;
156
157 vector dir2 = dir.Perpend() * size;
158
159 vector pts[5];
160 pts[0] = from;
161 pts[1] = to;
162 pts[2] = to - dir1 - dir2;
163 pts[3] = to - dir1 + dir2;
164 pts[4] = to;
165
166 return Shape.CreateLines(color, flags, pts, 5);
167 }
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
class DiagMenu Shape
don't call destructor directly. Use Destroy() instead

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

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