跳到主要内容

IDP.Math.KGeomLib.createPlaneByPointNormal() method

通过一个点和一个法向来创建平面。

Create a plane from a point and normal.

Signature:

createPlaneByPointNormal(point: KPoint3d, normal: KVector3d, xDirection?: KVector3d): KPlane;

Links: createPlaneByPointNormal(point: KPoint3d, normal: KVector3d, xDirection?: KVector3d): KPlane;

Parameters

Parameter

Type

Description

point

KPoint3d

平面的原点。

The origin point of the plane.

normal

KVector3d

平面的法向。

The normal of the plane.

xDirection

KVector3d

(Optional) 平面的x方向,该参数为可选参数,如给出了,则需要保证是不平行于法向。

Candidate x direction of the plane, if it's not null, the caller need to make sure it's not parallel to normal.

Returns:

KPlane

三维平面。

The 3D plane.