跳到主要内容

KVector2d.dot() method

两向量的点积。

Return the dot product of this vector and the input other vector.

Signature:

dot(other: KVector2d): number;

Links: dot(other: KVector2d): number;

Parameters

Parameter

Type

Description

other

KVector2d

被点积的另一个向量。

The vector to dot.

Returns:

number

两向量点积的结果。

The dot product of the vectors.