由
new Plane(normal, distance)
a x+b y+c z+d=0定義的Hessian法向形式的平面,其中(a、b、c)是平面的
normal
,d是平面的符號(hào)distance
,并且(x、y、z)是平面上的任何點(diǎn)。
Parameters:
distance
(Number)
從原點(diǎn)到平面的最短距離。distance
的符號(hào)決定原點(diǎn)在平面的哪一側(cè)。如果distance
為正,則原點(diǎn)在法向的半空間中;如果為負(fù),則原點(diǎn)在法向的半空間中;如果為零,則平面通過原點(diǎn)。
Throws
-
DeveloperError : 正常必須規(guī)范化
Members
(static, constant) ORIGIN_XY_PLANE : Plane
一個(gè)常量,初始化為xy平面,通過原點(diǎn),法向?yàn)檎齴。
(static, constant) ORIGIN_YZ_PLANE : Plane
初始化為通過原點(diǎn)的yz平面的常量,法線為正x。
(static, constant) ORIGIN_ZX_PLANE : Plane
一個(gè)初始化為通過原點(diǎn)的ZX平面的常量,其法向值為正y。
distance : Number
從原點(diǎn)到平面的最短距離。
distance
的符號(hào)決定原點(diǎn)在平面的哪一側(cè)。如果distance
為正,則原點(diǎn)在法向的半空間中;如果為負(fù),則原點(diǎn)在法向的半空間中;如果為零,則平面通過原點(diǎn)。
normal : Cartesian3
飛機(jī)是正常的。
Methods
(static) clone(plane, result) → {Plane}
復(fù)制平面實(shí)例。
Parameters:
按法向和距離比較提供的平面,如果它們相等,則返回
true
,否則返回false
。
Parameters:
從常規(guī)公式創(chuàng)建平面
Parameters:
Throws
-
DeveloperError : 正常必須規(guī)范化
從法線和平面上的點(diǎn)創(chuàng)建平面。
Parameters:
Example
var point = bmgl.Cartesian3.fromDegrees(-72.0, 40.0);
var normal = ellipsoid.geodeticSurfaceNormal(point);
var tangentPlane = bmgl.Plane.fromPointNormal(point, normal);
Throws
-
DeveloperError : 正常必須規(guī)范化
計(jì)算點(diǎn)到平面的有符號(hào)最短距離。距離的符號(hào)決定點(diǎn)在平面的哪一側(cè)。如果距離為正,則點(diǎn)在法向的半空間中;如果為負(fù),則點(diǎn)在法向的半空間中;如果為零,則平面通過該點(diǎn)。
Parameters:
將點(diǎn)投影到平面上。
Parameters:
用給定的變換矩陣變換平面。