Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

github.com/eliasnaur/glam

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/eliasnaur/glam

  • v0.0.0-20130820114957-bed3e2221417
  • Source
  • Go
  • Socket score

Version published
Created
Source

GLaM: OpenGL Mathematics for Go

Features

GLaM is a Go package providing mathematical types and operations for use with OpenGL. It is written with game development in mind, so the focus is on speed over portability or accuracy.

NOTE: this is a work in progress.

  • Vectors and matrices.
  • Efficient single-precision math.
  • Some noise functions (Perlin, Simplex...).

Package GLaM

import "github.com/drakmaniso/glam"

This package provides vectors and matrices, and their associated operations.

  • The names mirrors the GLSL types: Vec2, Vec3, Vec4, Mat3, Mat4, IVec3...
  • All types are pure values: there's no heap allocation, and no hidden data.
  • All types have the same memory layout than their corresponding GLSL types.
  • Most methods are inlined by the compiler.

Package GLaM Math

import "github.com/drakmaniso/glam/math"

This package aims to provide fast float32 math functions, using assembly when appropriate.

Package GLaM Noise

import "github.com/drakmaniso/glam/noise"

The Perlin and Simplex noise functions are adapted from "Simplex Noise Demystified" by Stefan Gustavson (code in the public domain).

Author

Laurent Moussault moussault.laurent@gmail.com

FAQs

Package last updated on 20 Aug 2013

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc