IDP.Math.KGeomLib.createVector2d() method
创建一个kVector2d对象。
Creates an instance of KVector2d
Signature:
createVector2d(x: number, y: number): KVector2d;
Links: createVector2d(x: number, y: number): KVector2d;
Parameters
Parameter | Type | Description |
---|---|---|
x | number | 二维向量的x分量。 The x value of the 2D vector |
y | number | 二维向量的y分量。 The y value of the 2D vector |
Returns:
二维向量。
The 2D vector.