// Path: core/src/com/ychstudio/utils/Box2dLocation.java
// public class Box2dLocation implements Location<Vector2>{
//     
//     Vector2 position;
//     float orientation;
//     
//     public Box2dLocation() {
//         position = new Vector2();
//         orientation = 0;
//     }
// 
//     @Override
//     public Vector2 getPosition() {
//         return position;
//     }
// 
//     @Override
//     public float getOrientation() {
//         return orientation;
//     }
// 
//     @Override
//     public void setOrientation(float orientation) {
//         this.orientation = orientation;
//     }
// 
//     @Override
//     public float vectorToAngle(Vector2 vector) {
//         return Box2dSteeringUtils.vectorToAngle(vector);
//     }
// 
//     @Override
//     public Vector2 angleToVector(Vector2 outVector, float angle) {
//         return Box2dSteeringUtils.angleToVector(outVector, angle);
//     }
// 
//     @Override
//     public Location<Vector2> newLocation() {
//         return new Box2dLocation();
//     }
//     
// }
// 
// Path: core/src/com/ychstudio/utils/Box2dSteeringUtils.java
// public final class Box2dSteeringUtils {
//     
//     private Box2dSteeringUtils() {
//         
//     }
//     
//     public static float vectorToAngle(Vector2 vector) {
//         return (float) Math.atan2(-vector.x, vector.y);
//     }
//     
//     public static Vector2 angleToVector(Vector2 outVector, float angle) {
//         outVector.x = -(float) Math.sin(angle);
//         outVector.y = (float) Math.cos(angle);
//         
//         return outVector;
//     }
// }


import com.badlogic.gdx.ai.utils.Location;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.ychstudio.utils.Box2dLocation;
import com.ychstudio.utils.Box2dSteeringUtils;
package com.ychstudio.ai;


public class PlayerAI implements Location<Vector2> {

    private final Body body;

    public PlayerAI(Body body) {
        this.body = body;
    }
    
    @Override
    public Vector2 getPosition() {
        return body.getPosition();
    }

    @Override
    public float getOrientation() {
        return body.getAngle();
    }

    @Override
    public void setOrientation(float orientation) {
        body.setTransform(getPosition(), orientation);
    }

    @Override
    public float vectorToAngle(Vector2 vector) {
// Path: core/src/com/ychstudio/utils/Box2dLocation.java
// public class Box2dLocation implements Location<Vector2>{
//     
//     Vector2 position;
//     float orientation;
//     
//     public Box2dLocation() {
//         position = new Vector2();
//         orientation = 0;
//     }
// 
//     @Override
//     public Vector2 getPosition() {
//         return position;
//     }
// 
//     @Override
//     public float getOrientation() {
//         return orientation;
//     }
// 
//     @Override
//     public void setOrientation(float orientation) {
//         this.orientation = orientation;
//     }
// 
//     @Override
//     public float vectorToAngle(Vector2 vector) {
//         return Box2dSteeringUtils.vectorToAngle(vector);
//     }
// 
//     @Override
//     public Vector2 angleToVector(Vector2 outVector, float angle) {
//         return Box2dSteeringUtils.angleToVector(outVector, angle);
//     }
// 
//     @Override
//     public Location<Vector2> newLocation() {
//         return new Box2dLocation();
//     }
//     
// }
// 
// Path: core/src/com/ychstudio/utils/Box2dSteeringUtils.java
// public final class Box2dSteeringUtils {
//     
//     private Box2dSteeringUtils() {
//         
//     }
//     
//     public static float vectorToAngle(Vector2 vector) {
//         return (float) Math.atan2(-vector.x, vector.y);
//     }
//     
//     public static Vector2 angleToVector(Vector2 outVector, float angle) {
//         outVector.x = -(float) Math.sin(angle);
//         outVector.y = (float) Math.cos(angle);
//         
//         return outVector;
//     }
// }


// Path: core/src/com/ychstudio/ai/PlayerAI.java
import com.badlogic.gdx.ai.utils.Location;
import com.badlogic.gdx.math.Vector2;
import com.badlogic.gdx.physics.box2d.Body;
import com.ychstudio.utils.Box2dLocation;
import com.ychstudio.utils.Box2dSteeringUtils;

package com.ychstudio.ai;


public class PlayerAI implements Location<Vector2> {

    private final Body body;

    public PlayerAI(Body body) {
        this.body = body;
    }
    
    @Override
    public Vector2 getPosition() {
        return body.getPosition();
    }

    @Override
    public float getOrientation() {
        return body.getAngle();
    }

    @Override
    public void setOrientation(float orientation) {
        body.setTransform(getPosition(), orientation);
    }

    @Override
    public float vectorToAngle(Vector2 vector) {
        return Box2dSteeringUtils.vectorToAngle(vector);