Is this a bug?
-
I don't know if this is the right place to ask, but... this piece of code should give me result 0, instead it is 0.7...
@
QVector3D(0.5, 0.5, 0).distanceToLine(QVector3D(1, 0, 0),(QVector3D(0, 1, 0)-QVector3D(1, 0, 0)))
@What am I doing wrong? Or this is a nasty bug?
[EDIT: code formatting, Volker]
-
Direction vector should be unit vector (normalized vector).