@@ -2,7 +2,7 @@ package h3d;
22using hxd .Math ;
33
44/**
5- A 4 floats vector. Everytime a Vector is returned, it means a copy is created.
5+ A 3 floats vector. Everytime a Vector is returned, it means a copy is created.
66**/
77class VectorImpl #if apicheck implements h2d.impl. PointApi <Vector ,Matrix > #end {
88
@@ -38,7 +38,6 @@ class VectorImpl #if apicheck implements h2d.impl.PointApi<Vector,Matrix> #end {
3838 }
3939
4040 public inline function scaled ( v : Float ) {
41- // see scale
4241 return new Vector (x * v , y * v , z * v );
4342 }
4443
@@ -109,10 +108,6 @@ class VectorImpl #if apicheck implements h2d.impl.PointApi<Vector,Matrix> #end {
109108 }
110109
111110 public inline function scale ( f : Float ) {
112- /*
113- The scale of a vector represents its length and thus
114- only x/y/z should be affected by scaling
115- */
116111 x * = f ;
117112 y * = f ;
118113 z * = f ;
@@ -292,9 +287,7 @@ class VectorImpl #if apicheck implements h2d.impl.PointApi<Vector,Matrix> #end {
292287
293288
294289/**
295- A 4 floats vector. Everytime a Vector is returned, it means a copy is created.
296- For function manipulating the length (length, normalize, dot, scale, etc.), the Vector
297- acts like a Point in the sense only the X/Y/Z components will be affected.
290+ A 3 floats vector. Everytime a Vector is returned, it means a copy is created.
298291**/
299292@:forward abstract Vector (VectorImpl ) from VectorImpl to VectorImpl {
300293
0 commit comments