Example #1
0
 // Token: 0x06000327 RID: 807 RVA: 0x0000CF0D File Offset: 0x0000B10D
 public static ICollection <Vector2> IntersectionPointsWith(this Box2 box, Line2 line)
 {
     return(line.IntersectionPointsWith(box));
 }
Example #2
0
 // Token: 0x06000323 RID: 803 RVA: 0x0000CEE9 File Offset: 0x0000B0E9
 public static bool Intersects(this Box2 box, Line2 line2)
 {
     return(line2.Intersects(box));
 }
Example #3
0
 // Token: 0x06000325 RID: 805 RVA: 0x0000CEFB File Offset: 0x0000B0FB
 public static Segment2?IntersectionWith(this Box2 box, Line2 line)
 {
     return(line.IntersectionWith(box));
 }
 // Token: 0x06000349 RID: 841 RVA: 0x0000E23F File Offset: 0x0000C43F
 public IntersectionLine2Box2(Line2 line, Box2 box)
 {
     this      = default(IntersectionLine2Box2);
     this.line = line;
     this.box  = box;
 }
 // Token: 0x060002D0 RID: 720 RVA: 0x0000B882 File Offset: 0x00009A82
 public IntersectionLine2Arc2(Line2 line, Arc2 arc)
 {
     this      = default(IntersectionLine2Arc2);
     this.line = line;
     this.arc  = arc;
 }
 /// <summary>
 /// 构造函数
 /// </summary>
 /// <param name="line0"></param>
 /// <param name="line1"></param>
 public IntersectionLine2Line2(Line2 line0, Line2 line1)
 {
     this       = default(IntersectionLine2Line2);
     this.line0 = line0;
     this.line1 = line1;
 }
Example #7
0
 // Token: 0x060002E5 RID: 741 RVA: 0x0000BBE9 File Offset: 0x00009DE9
 public IntersectionLine2Circle2(Line2 line, Circle2 circle)
 {
     this        = default(IntersectionLine2Circle2);
     this.line   = line;
     this.circle = circle;
 }
Example #8
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="line"></param>
        /// <param name="vector"></param>
        /// <returns></returns>
        public static Segment2 ShortestSegmentTo(this Line2 line, Vector2 vector)
        {
            DistanceVector2Line2 distanceVector2Line = new DistanceVector2Line2(vector, line);

            return(new Segment2(distanceVector2Line.ClosestPointOnLine, distanceVector2Line.ClosestPointOnVector));
        }
Example #9
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="line"></param>
        /// <param name="vector"></param>
        /// <returns></returns>
        public static Vector2 ClosestPointTo(this Line2 line, Vector2 vector)
        {
            DistanceVector2Line2 distanceVector2Line = new DistanceVector2Line2(vector, line);

            return(distanceVector2Line.ClosestPointOnLine);
        }
Example #10
0
 /// <summary>
 /// 计算线和点的距离
 /// </summary>
 /// <param name="line"></param>
 /// <param name="vector"></param>
 /// <returns></returns>
 public static double DistanceTo(this Line2 line, Vector2 vector)
 {
     return(vector.DistanceTo(line));
 }