2017 © Pedro Peláez
 

library glm

A port of the OpenGL Mathematics library (GLM) to PHP

image

ponup/glm

A port of the OpenGL Mathematics library (GLM) to PHP

  • Thursday, January 18, 2018
  • by ponup
  • Repository
  • 0 Watchers
  • 2 Stars
  • 62 Installations
  • PHP
  • 3 Dependents
  • 0 Suggesters
  • 1 Forks
  • 2 Open issues
  • 3 Versions
  • 9 % Grown

The README.md

Build Status, (*1)

PHP GLM

A port of the GLM library to the PHP language., (*2)

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))

The Versions

18/01 2018

dev-master

9999999-dev

A port of the OpenGL Mathematics library (GLM) to PHP

  Sources   Download

GPL-3.0+ LGPL-3.0-or-later

The Development Requires

18/01 2018

1.0.2

1.0.2.0

A port of the OpenGL Mathematics library (GLM) to PHP

  Sources   Download

LGPL-3.0-or-later

The Development Requires

26/05 2016

1.0.0

1.0.0.0

A port of the OpenGL Mathematics library (GLM) to PHP

  Sources   Download

GPL-3.0+

The Development Requires