Announcements
Attention for Customers without Multi-Factor Authentication or Single Sign-On - OTP Verification rolls out April 2025. Read all about it here.
earl_cody
in reply to: tmathieson

@tmathieson - Glad you found it useful!

 

For iLogic, you can use curly brackets {1, 2, 3} instead of Array(1, 2, 3).

...
Dim cp As Object
cp = CrossProduct( _
    v1:= {uvPlaneOneNormal.X, uvPlaneOneNormal.Y, uvPlaneOneNormal.Z}, _
    v2:= {uvPlaneTwoNormal.X, uvPlaneTwoNormal.Y, uvPlaneTwoNormal.Z })
...
Function CrossProduct(v1 As Object, v2 As Object) As Object
    CrossProduct = { _
        v1(1) * v2(2) - v1(2) * v2(1), _
        v1(2) * v2(0) - v1(0) * v2(2), _
        v1(0) * v2(1) - v1(1) * v2(0)}
End Function