跳到主要内容

IDP.Math.KGeomLib.createPlaneByThreePoints() method

通过三点创建一个平面。 平面的原点时第一个点,平面的法向是p1到p2向量与p1到p3向量的叉乘,x轴是p1到p2向量的单位向量。

Create a plane from three points. The generated plane's origin is point1, the normal is the cross production of (point2 - point1) and (point3 - point1), the x axis is (point2 - point1).normalize().

Signature:

createPlaneByThreePoints(point1: KPoint3d, point2: KPoint3d, point3: KPoint3d): KPlane | null;

Links: createPlaneByThreePoints(point1: KPoint3d, point2: KPoint3d, point3: KPoint3d): KPlane | null;

Parameters

Parameter

Type

Description

point1

KPoint3d

输入点p1。

The input p1.

point2

KPoint3d

输入点p2。

The input p2.

point3

KPoint3d

输入点p3。

The input p3.

Returns:

KPlane | null

由三点构造的平面,若三点共线则范围null。

The plane constructed by the three points or null (if three points are colinear).