ponup/glm
最新稳定版本:1.1.0
Composer 安装命令:
composer require ponup/glm
包简介
A port of the OpenGL Mathematics library (GLM) to PHP
README 文档
README
PHP GLM
A port of the GLM library to the PHP language.
Example usage
<?php require 'vendor/autoload.php'; use glm\vec3; use glm\mat4; $matrix = new mat4; // 4x4 identity matrix echo $matrix, PHP_EOL; // Output: mat4x4((1.000000, 0.000000, 0.000000, 0.000000), (0.000000, 1.000000, 0.000000, 0.000000), (0.000000, 0.000000, 1.000000, 0.000000), (0.000000, 0.000000, 0.000000, 1.000000)) echo $matrix->scale(5), PHP_EOL; // Output: mat4x4((5.000000, 0.000000, 0.000000, 0.000000), (0.000000, 5.000000, 0.000000, 0.000000), (0.000000, 0.000000, 5.000000, 0.000000), (0.000000, 0.000000, 0.000000, 1.000000))
统计信息
- 总下载量: 790
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 6
- 点击次数: 0
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2016-05-22