DayZ 1.30
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 строка 147

148 {
149 vector dir = to - from;
150 dir.Normalize();
151 vector dir1 = dir * size;
152 size = size * 0.5;
153
154 vector dir2 = dir.Perpend() * size;
155
156 vector pts[5];
157 pts[0] = from;
158 pts[1] = to;
159 pts[2] = to - dir1 - dir2;
160 pts[3] = to - dir1 + dir2;
161 pts[4] = to;
162
163 return Shape.CreateLines(color, flags, pts, 5);
164 }
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().