Skip to content

ofxyz/ofx2d

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ofx2d

A collection of small 2D geometry utilities.

Introduction

This addon brings a basic 2D geometry utils to OpenFrameworks.

Installation

Clone this repo into your openFrameworks/addons/ folder. Then instantiate the class:

    #include "ofx2d.h"
    
    ofx2d x2d;

Utils

  • getIndex(vectorstd::string v, std::string lookup, int notFound = -1);
  • midpoint(point1, point2)
  • intersection(p1, p2, p3, p4)
  • remap(value, fromLow, fromHigh, toLow, toHigh)

Compatibility

Written using OpenFrameworks 0.10.1

Known issues

For bugs, see issue tracker.

About

Raw Geometric Drawing Utilities

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published