你是对的。该文档具有误导性。例如,我比较了两个不同的数学库。System.Numerics 和 Accord.Math
public void RightHandRulePlane_Accord()
{
{
var plane = System.Numerics.Plane.CreateFromVertices
(
new System.Numerics.Vector3( 0, 0.5f, 0 )
, new System.Numerics.Vector3( 1, 0.5f, 0 )
, new System.Numerics.Vector3( 0, 0.5f, 1 ) );
Console.WriteLine( plane.ToString() );
plane = System.Numerics.Plane.CreateFromVertices
(
new System.Numerics.Vector3( 0, 0.5f, 1 )
, new System.Numerics.Vector3( 1, 0.5f, 0 )
, new System.Numerics.Vector3( 0, 0.5f, 0 )
);
Console.WriteLine( plane.ToString() );
}
{
var plane = Accord.Math.Plane.FromPoints
(
new Accord.Math.Point3( 0, 0.5f, 0 )
, new Accord.Math.Point3( 1, 0.5f, 0 )
, new Accord.Math.Point3( 0, 0.5f, 1 ) );
Console.WriteLine( plane.ToString() );
plane = Accord.Math.Plane.FromPoints
(
new Accord.Math.Point3( 0, 0.5f, 1 )
, new Accord.Math.Point3( 1, 0.5f, 0 )
, new Accord.Math.Point3( 0, 0.5f, 0 )
);
Console.WriteLine( plane.ToString() );
}
}
输出是
{Normal:<0, -1, 0> D:0.5}
{Normal:<0, 1, 0> D:-0.5}
0x -1y 0z +0.5 = 0
0x +1y 0z -0.5 = 0
有符号值+0.5
是等式中的常数项
ax + by + cz + d = 0
您是正确的,您可能应该将其解读为在平面法线方向上从平面原点到坐标系原点的距离。