你是對的。該文檔具有誤導性。比如我比較兩個不同的數學庫。 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
你是,你可能應該正確讀取平面原點到平面法線方向上座標系原點的距離。
你是左撇子嗎? :D – leppie
我是否左撇子對我的閱讀理解沒有太大的影響:P – Martin
@leppie正在做一個不道德的事情)關於[右手規則](http:// mathworld .wolfram.com/Right-HandRule.html)請參閱我的答案瞭解更多信息。 – bradgonesurfing