https://github.com/x-titan/vector
https://github.com/x-titan/vector
browser-js ivector javascript js vector vector2 vector3
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/x-titan/vector
- Owner: x-titan
- License: mit
- Created: 2022-03-01T16:45:25.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2023-12-10T19:25:44.000Z (about 2 years ago)
- Last Synced: 2025-03-18T22:05:53.945Z (11 months ago)
- Topics: browser-js, ivector, javascript, js, vector, vector2, vector3
- Language: JavaScript
- Homepage: https://x-titan.github.io/vector/index.js
- Size: 46.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Vector
XTitan_Vector is a JavaScript library for mathematical functions related to vectors.
## Usage
To use XTitan_Vector in your project, include the following script tag in your HTML file:
```html
```
You can import various components from XTitan_Vector in your JavaScript file as follows:
```javascript
import {
IVector, // vector interface
AVector, // vector abstract class
Vector, // vector class
... // others
} from "https://x-titan.github.io/vector/index.js"
```
## Exports
`IVector` is a interface for Vector.
`AVector` is abstract class.
```javascript
export class IVector { ... }
export class AVector extends IVector { ... }
export class Vector extends AVector { ... }
export class Vector2 extends Vector { ... }
export class Vector3 extends Vector { ... }
export const VECTOR_CONSTANTS = { ... }
export function vec (x, y, z): Vector
export function v2 (x, y): Vector2
export function v3 (x, y, z): Vector3
```
## License
This project is licensed under the [MIT License](./LICENSE).
## Contact/Support
For questions or support, you can reach out to the project maintainers:
- [XTitan](mailto:telmanov2002.at@gmail.com)
Feel free to open an issue if you encounter any problems or have suggestions for improvement.