Maxon Developers Maxon Developers
    • Documentation
      • Cinema 4D Python API
      • Cinema 4D C++ API
      • Cineware API
      • ZBrush GoZ API
      • Code Examples on Github
    • Forum
    • Downloads
    • Support
      • Support Procedures
      • Registered Developer Program
      • Plugin IDs
      • Contact Us
    • Categories
      • Overview
      • News & Information
      • Cinema 4D SDK Support
      • Cineware SDK Support
      • ZBrush 4D SDK Support
      • Bugs
      • General Talk
    • Unread
    • Recent
    • Tags
    • Users
    • Login

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

    SDK Help
    0
    5
    417
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • H
      Helper
      last edited by

      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

      1 Reply Last reply Reply Quote 0
      • H
        Helper
        last edited by

        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

        1 Reply Last reply Reply Quote 0
        • H
          Helper
          last edited by

          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

          1 Reply Last reply Reply Quote 0
          • H
            Helper
            last edited by

            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

            1 Reply Last reply Reply Quote 0
            • H
              Helper
              last edited by

              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

              1 Reply Last reply Reply Quote 0
              • First post
                Last post