vnorm() and vcross() in C++ SDK?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 25/07/2007 at 00:16, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.111 
Platform:   Windows  ;   
Language(s) :     C++  ;

---------
Hi,

I am stuck a little... wanted to integrate the HPB-Target code (that everyone knows from the Coffee examples) into a C++ plugin of mine, but I can't find the C++ functions for vnorm() and vcross().
Do I have to write them myself?

Thanks for any hints, tips or slaps on the forehead 😉

Best regards,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 25/07/2007 at 00:25, xxxxxxxx wrote:

vnorm() and vcross() are done with operators in C++. so vnorm(v) would be !v and vcros(v1,v2) would be v1 %v2 in C++.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 25/07/2007 at 01:31, xxxxxxxx wrote:

Thanks, Matthias!

Wow, I didn't expect that 🙂
Is that C++ standard, or do those operators come with the SDK?

But I wonder: Wouldn't !v be something like the negation of v? I thought, ! is like NOT in Basic.

Greetings,
Frank

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 25/07/2007 at 02:04, xxxxxxxx wrote:

In C++ you can overload operators. That means you can change the behaviour of operators for classes. So for instance the minus operator could mean something completely different for different classes. Just look at the Vector structure in the docu to see the overloaded operators.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 25/07/2007 at 02:07, xxxxxxxx wrote:

Cool, thanks again for the info!

Best regards,
Frank