跳到主要内容

KVector2d.cross() method

两向量的叉积。

Return the cross result of this vector and the input other vector.

Signature:

cross(other: KVector2d): number;

Links: cross(other: KVector2d): number;

Parameters

Parameter

Type

Description

other

KVector2d

被叉积的另一向量。

The vector to cross.

Returns:

number

两向量叉积的结果。

The cross product of the vectors.