コード例 #1
0
 public BVHSegment2Object(Vector2 p1, Vector2 p2)
     : base(GeoShape.GeoSegment2)
 {
     mSeg    = new GeoSegment2(p1, p2);
     mCenter = (p1 + p2) * 0.5f;
     mAABB   = new GeoAABB2(Vector2.Min(p1, p2), Vector2.Max(p1, p2));
 }
コード例 #2
0
 public bool Equal(GeoSegment2 other)
 {
     return((mP1 == other.mP1 && mP2 == other.mP2) || (mP1 == other.mP2 && mP2 == other.mP1));
 }