/// <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); }
public bool IsPointBetweenStartAndEnd(Vector3D point) { return point.IsBetweenPoints(Start, End); }