コード例 #1
0
ファイル: Triangle3D.cs プロジェクト: Paulus/irrlichtnetcp
 /// <summary>
 /// Returns an intersection with a 3d line.
 /// </summary>
 /// <param name="line">Line to intersect with.</param>
 /// <param name="outIntersection">Place to store the intersection point, if there is one.</param>
 /// <returns>Returns true if there was an intersection, false if there was not.</returns>
 public bool GetIntersectionWithLimitedLine(Line3D line, out Vector3D outIntersection)
 {
     return GetIntersectionWithLine(line.Start,line.Vector, out outIntersection) &&
            outIntersection.IsBetweenPoints(line.Start, line.End);
 }
コード例 #2
0
ファイル: Line3D.cs プロジェクト: RealBadAngel/irrlicht.netcp
 public bool IsPointBetweenStartAndEnd(Vector3D point)
 {
     return point.IsBetweenPoints(Start, End);
 }