threejs vector3叉积

threejs  vector3叉积

var vOA4 = new THREE.Vector3(1.0, 0.0, 0.0);
var vOB4 = new THREE.Vector3(0.0, 0.0, 1.0);
var vOC4_2 = vOB4.cross(vOA4);
console.log(vOC4_2);

 

输出:

Object { x: 0, y: 1, z: 0 }

 

 

#########################

posted @ 2022-01-18 12:44  西北逍遥  阅读(324)  评论(0编辑  收藏  举报