@fivem-ts/shared
Version:
FiveM Typescript wrapper shared part
46 lines (45 loc) • 973 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.Vector = void 0;
/**
* Abstract class representing a 2D vector.
*/
class Vector {
constructor(_x, _y) {
this._x = _x;
this._y = _y;
}
/**
* Retrieves the value of the private member variable _x.
*
* @return {number} The value of _x.
*/
get x() {
return this._x;
}
/**
* Sets the value of the property `x`.
*
* @param {number} value - The new value to set for the property.
*/
set x(value) {
this._x = value;
}
/**
* Gets the y-coordinate value.
*
* @return {number} The current value of the y-coordinate.
*/
get y() {
return this._y;
}
/**
* Sets the value of the y property.
*
* @param {number} value - The new value for the y property.
*/
set y(value) {
this._y = value;
}
}
exports.Vector = Vector;
;