Fuze Arena Logo
  • Forum
  • Creations
    Catalogue Showcase
  • Help

cross()

Purpose

Find the cross product of two vectors

Description

Calculate the cross product of two vectors which is the vector that is at right angles to them both

Syntax

vector3 = cross( vector1, vector2 )

Arguments

vector1 The first vector (x,y,z)

vector2 The second vector (x,y,z)

vector3 The resulting vector (x,y,z)

Example

vector1 = { 2, 3, 4 }
vector2 = { 5, 6, 7 }
vector3 = cross( vector1, vector2 )
print( "(", vector3.x, ",", vector3.y, ",", vector3.z, ")" )
update()
sleep( 3 )

Associated Commands

dot(), length(), normalize(), reflect(), refract()

logo

©2019 FUZE Technologies Ltd. FUZE is a registered trademark of FUZE Technologies Ltd. All rights reserved.

Useful links

  • Fuze Main Site
  • Fuze Arena on Twitter
  • Fuze Arena on Youtube
  • Download Buyer

Contact Information

  • FUZE Technologies Ltd
    15 Clearfields Farm
    Wotton Underwood
    Aylesbury, Buckinghamshire
    ​England, HP18 0RS

  • +44 (0) 1844 239 432

  • contact@fuze.co.uk

© Copyright FUZE Technologies Ltd. All rights reserved.