を返し、testpoint が正の法線から見て P と V で定義された線の右側にある場合は True をクリックします。
onRight? ( testPoint As Point, _
p As Point, _
v As Vector, _
normal As Vector ) As Boolean
引数 | [タイプ] | 説明 |
---|---|---|
testPoint | Point | テストするには 、 Point をクリックします。 |
p | Point | Point ライン リファレンスジオ メトリを定義するのに役立ちます。 |
v | Vector | Vector ライン リファレンスジオ メトリを定義するのに役立ちます。 |
normal | Vector | 側面は、右手の法則によって左右されるかを決定するために使用される法線です。 vector |
右手の法則を使用して 、Intent >onRight?(point(-1,0,0), point(0,0,0), vector(0,1,0), vector(0,0,1))
--> False
testPoint
vector
V と法線
vector
のクロス積の負の方向になります。 testpoint は point P vector で、V はライン上にある場合 、Intent >onRight?(point(0,1,0), point(0,0,0), vector(0,1,0), vector(0,0,1)) --> False関数 False を返します。 point は、線分の右にある必要があります。