Qt 6.11 is out! See what's new in the release
blog
Is this a bug?
General and Desktop
3
Posts
2
Posters
2.1k
Views
1
Watching
-
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).