跳到主要内容

IDP.Math.KGeomLib.createLine2d() method

创建一个KLine2d对象。

Creates an instance of KLine2d.

Signature:

createLine2d(point: KPoint2d, direction: KVector2d): KLine2d;

Links: createLine2d(point: KPoint2d, direction: KVector2d): KLine2d;

Parameters

Parameter

Type

Description

point

KPoint2d

二维直线的原点。

The origin point of the 2D line.

direction

KVector2d

二维直线的方向。

The direction of the 2D line.

Returns:

KLine2d

二维直线。

The 2D line.