193 {
196
198 size = size * 0.5;
199
201
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
212 }
proto float Normalize()
Normalizes vector. Returns length.
vector Perpend()
Returns perpendicular vector. Perpendicular vector is computed as cross product between input vector ...
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.