import Vector2 from "../../../core/geom/Vector2.js";
import { current_time_in_seconds } from "../../../core/time/current_time_in_seconds.js";

export class LocationalInteractionMetadata {
    /**
     * In seconds
     * @type {number}
     */
    timestamp = current_time_in_seconds()
    position = new Vector2()

    /**
     *
     * @param {Vector2} p
     */
    static from(p) {
        const r = new LocationalInteractionMetadata();

        r.position.copy(p);

        return r;
    }
}