Miss any of our Open RFC calls?Watch the recordings here! »

mobius-transformation

0.2.0 • Public • Published

möbius-transformation

implements beautiful geometric transformations that preserve angles and generalized circles

Möbius transformations are named in honor of August Ferdinand Möbius; they are also variously named homographies, homographic transformations, linear fractional transformations, bilinear transformations, or fractional linear transformations.

See Möbius transformation on wikipedia.

Installation | API | Examples | License

NPM version Build Status Dependency Status JavaScript Style Guide

Installation

With npm do

npm install mobius-transformation

API

new mobius.Transformation([a, b, c, d])

Examples

Unit circle inversion.

const algebra = require('algebra')
const mobius = require('mobius-transformation')
 
const Complex = algebra.Complex
 
const zero = new Complex([0, 0])
const one = new Complex([1, 0])
const half = new Complex([0.5, 0])
 
const inversion = new mobius.Transformation([zero, one,
                                             one,  zero])
 
const two = inversion(half)
 
console.log(two) // Complex { data: [2, 0] }

License

MIT

Install

npm i mobius-transformation

DownloadsWeekly Downloads

0

Version

0.2.0

License

MIT

Unpacked Size

12.8 kB

Total Files

18

Last publish

Collaborators

  • avatar