Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/jitesoft/php-math

Math lib for PHP
https://github.com/jitesoft/php-math

Last synced: 5 days ago
JSON representation

Math lib for PHP

Awesome Lists containing this project

README

        

# Math

[![Build Status](https://img.shields.io/travis/jitesoft/php-math/master.svg?label=master)](https://travis-ci.org/jitesoft/php-math)

[![Build Status](https://img.shields.io/travis/jitesoft/php-math/develop.svg?label=develop)](https://travis-ci.org/jitesoft/php-math)

[![Dependency Status](https://gemnasium.com/badges/github.com/jitesoft/php-math.svg)](https://gemnasium.com/github.com/jitesoft/php-math)

[![codecov](https://codecov.io/gh/jitesoft/php-math/branch/master/graph/badge.svg)](https://codecov.io/gh/jitesoft/php-math)

A Math library for php 7.1+.
This lib was extracted from the `Jitesoft\Utilities\DataStructures` project.

## Installation

Clone the repository or install with composer.

```bash
composer require jitesoft/math
```

## Implemented classes

`Jitesoft\Utilities\Math`

* `Math` - Misc static math helpers.
* `Point2D` - A point structure in 2D space.
* `Point3D` - A point structure in 3D space.
* `Vector2D` - A vector structure in 2D space.
* `Vector3D` - A vector structure in 3D space.
* `Vector4D` - A vector structure in 4D space.
* `VectorMath` - Common math for all vector types.
* `Matrix33` - A matrix structure with 3*3 indexes.
* `Matrix44` - A matrix structure with 4*4 indexes.
* `MatrixMath` - Common math for all matrices.

## License

```text
MIT License

Copyright (c) 2017 Jitesoft

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
```