예제 #1
0
 internal IntersectionPoint(float dist, CollisionEdge thisEdge, CollisionEdge otherEdge)
 {
     this.Distance  = dist;
     this.ThisEdge  = thisEdge;
     this.OtherEdge = otherEdge;
 }
예제 #2
0
 public CollisionMoment(CollisionEdge thisEdge, CollisionEdge otherEdge, float timeAlpha)
 {
     this.ThisEdge  = thisEdge;
     this.OtherEdge = otherEdge;
     this.TimeAlpha = timeAlpha;
 }
예제 #3
0
 public CollisionEdge CombineWith(CollisionEdge edge)
 {
     return(From(this, edge));
 }
예제 #4
0
 public CollisionEdge Except(CollisionEdge edge)
 {
     return(new CollisionEdge(this.bitmask ^ edge.bitmask));
 }
예제 #5
0
 public static CollisionEdge From(CollisionEdge edge1, CollisionEdge edge2)
 {
     return(new CollisionEdge(edge1.bitmask | edge2.bitmask));
 }