Ejemplo n.º 1
0
 public override bool CheckLine(TSVector2 sOrgPos, TSVector2 sOffset, out TSVector2 sCrossPoint)
 {
     sCrossPoint = sOrgPos;
     if (TSCheck2D.CheckRectangleAndLine(this.center, this.forward, halfWidth, halfHeight, sOrgPos, ref sOffset))
     {
         sCrossPoint = sOrgPos + sOffset;
         return(true);
     }
     return(false);
 }
Ejemplo n.º 2
0
 public override bool CheckRect(TSVector2 sCenter, TSVector2 sDir, FP nHalfWidth, FP nHalfHeight)
 {
     return(TSCheck2D.CheckRectangleAndCircle(sCenter, sDir, nHalfWidth, nHalfHeight, this.center, radius));
 }
Ejemplo n.º 3
0
 public override bool CheckPos(TSVector2 sPosition)
 {
     return(TSCheck2D.CheckCicleAndPos(this.center, radius, sPosition));
 }
Ejemplo n.º 4
0
 public override bool CheckLine(TSVector2 sOrgPos, TSVector2 sOffset, out TSVector2 sCrossPoint)
 {
     sCrossPoint = sOrgPos;
     return(TSCheck2D.CheckCicleAndLine(sOrgPos, sOffset, this.center, radius, out sCrossPoint));
 }
Ejemplo n.º 5
0
 public override bool CheckCircle(TSVector2 sCenter, FP nRadius)
 {
     return(TSCheck2D.CheckCircleAndCircle(this.center, radius, sCenter, nRadius));
 }
Ejemplo n.º 6
0
 public override bool CheckPos(TSVector2 sPosition)
 {
     return(TSCheck2D.CheckRectangleAndPos(this.center, this.forward, halfWidth, halfHeight, sPosition));
 }
Ejemplo n.º 7
0
 public override bool CheckCircle(TSVector2 sCenter, FP nRadius)
 {
     return(TSCheck2D.CheckRectangleAndCircle(this.center, this.forward, halfWidth, halfHeight, sCenter, nRadius));
 }