import '../../../globals.js';
// Copyright 2023-2024, University of Colorado Boulder

/**
 * Like Vector2, but with BigRationals
 *
 * @author Jonathan Olson <jonathan.olson@colorado.edu>
 */

import { alpenglow, BigRational } from '../imports.js';

export default class BigRationalVector2 {
  public constructor( public x: BigRational, public y: BigRational ) {}

  public equals( vector: BigRationalVector2 ): boolean {
    return this.x.equals( vector.x ) && this.y.equals( vector.y );
  }

  public toString(): string {
    return `(${this.x}, ${this.y})`;
  }

  // TODO
}

alpenglow.register( 'BigRationalVector2', BigRationalVector2 );