vlen (C++)



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

    On 26/02/2010 at 06:55, xxxxxxxx wrote:

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

    ---------
    Could anyone tell me the C++ equivalent to the COFFEE  (vlen)     ?

    Thanks,

    ~Shawn



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

    On 26/02/2010 at 07:05, xxxxxxxx wrote:

    use the Vector classes friend method Len()

    for example:

      
    Vector v(100,0,0);  
    Real len = Len(v);  
    

    cheers,
    Matthias



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

    On 26/02/2010 at 07:05, xxxxxxxx wrote:

    Found it.  Or...  at least I think I found it.   I think it's "Len".

    Thanks,

    ~SHawn



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

    On 26/02/2010 at 07:06, xxxxxxxx wrote:

    lol...   good timing Matthias..      Thanks,

    ~Shawn



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

    On 26/02/2010 at 07:24, xxxxxxxx wrote:

    Since we're on the topic of COFFEE/C++ conversion.   I am looking for the C++ equivalent to

    var rot = m->GetHPB();  
      
    is there a C++ SDK equivalent to GetHPB for matrices?    I know GetRot() but that's not a member function of Matrix.     
      
    Thankkks,  
      
    ~Shawn  
    


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

    On 26/02/2010 at 08:34, xxxxxxxx wrote:

    The SDK has the function:

    Vector MatrixToHPB(const Matrix& m);

    which does the same thing, I think.


Log in to reply