예제 #1
0
 public override float[] ConvertSceneToLocalCoordinates(/* final */ float pX, /* final */ float pY)
 {
     /* final */
     float[] localCoordinates = ShapeCollisionChecker.ConvertSceneToLocalCoordinates(this, pX, pY);
     localCoordinates[Constants.VERTEX_INDEX_X] -= this.mX;
     localCoordinates[Constants.VERTEX_INDEX_Y] -= this.mY;
     return(localCoordinates);
 }
예제 #2
0
 public override float[] ConvertLocalToSceneCoordinates(/* final */ float pX, /* final */ float pY)
 {
     /* final */
     float[] sceneCoordinates = ShapeCollisionChecker.ConvertLocalToSceneCoordinates(this, pX, pY);
     sceneCoordinates[Constants.VERTEX_INDEX_X] += this.mX;
     sceneCoordinates[Constants.VERTEX_INDEX_Y] += this.mY;
     return(sceneCoordinates);
 }