Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
Hi folks,
I'm currently updating some old code that I didn't write myself. There's a line that I don't know what to make of:
if (((vectorPointPos - vectorPlanePos) * vectorPlaneNormal) > 0) ...
After looking into SDKs as old as R12, I simply can't remember or find out what happened back then when a Vector was compared to a LONG. It does not seem to be GetLength().
Any ideas @ SDK Team?
Thanks in advance!
Greetings from Berlin, Frank
Ah, got it. It would calculate a Dot() of (vectorPointPos - vectorPlanePos) and vectorPlaneNormal, and the LONG would be automatically cast to a Real.
This is were commenting code is usually quite helpful.
Yeah, definitely. When porting old code that I didn't write to new C4D releases, I always add lots of comments, so people who come after me won't have the same problems