This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class SimpleKalmanFilter | |
| { | |
| public: | |
| float xhat, xhatminus; | |
| float P, Pminus; | |
| float _x, _p; | |
| float Q, R, K; | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| indent_align_string=false | |
| indent_braces=false | |
| indent_braces_no_func=false | |
| indent_brace_parent=false | |
| indent_namespace=false | |
| indent_extern=false | |
| indent_class=true | |
| indent_class_colon=false | |
| indent_else_if=false | |
| indent_func_call_param=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Google ja: | |
| http://www.google.com/search?lr=lang_ja&q=%s | |
| Google en: | |
| http://www.google.com/search?lr=lang_en&q=%s | |
| oF forum: | |
| http://www.google.com/search?sitesearch=http%3A%2F%2Fforum.openframeworks.cc&q=%s | |
| C++ reference: | |
| http://www.google.com/search?sitesearch=http%3A%2F%2Fwww.cppreference.com/wiki/&q=%s | |
| C++ reference(ja): | |
| http://www.google.com/search?sitesearch=http%3A%2F%2Fwww.cppreference.com/wiki/jp/&q=%s |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| ''' | |
| dependent to ios-sim command (https://github.com/Fingertips/ios-sim) | |
| brew install ios-sim | |
| ''' | |
| import os | |
| def search_parent(path, target, count): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env python | |
| import os, sys | |
| imgs = [x for x in os.listdir('.') if x.endswith('@2x.png')] | |
| for i in imgs: | |
| t = i.replace('@2x.png', '.png') | |
| os.system("convert -resize 50%% %s %s" % (i, t)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // http://marina.sys.wakayama-u.ac.jp/~tokoi/?date=20110221 | |
| inline void billboard() | |
| { | |
| GLfloat m[16]; | |
| glGetFloatv(GL_MODELVIEW_MATRIX, m); | |
| float inv_len; | |
| m[8] = -m[12]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class PolygonArc | |
| { | |
| public: | |
| PolygonArc() | |
| { | |
| curveResolution = 4; | |
| } | |
| void draw() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "testApp.h" | |
| //-------------------------------------------------------------- | |
| void testApp::setup() | |
| { | |
| ofSetFrameRate(60); | |
| ofSetVerticalSync(true); | |
| ofBackground(0); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "kdtree.h" | |
| template<class T> | |
| class ofxKdTree | |
| { | |
| public: | |
| ofxKdTree() | |
| { | |
| kd = kd_create(3); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma once | |
| #include "ofMain.h" | |
| template <class T> | |
| class ofxSmooth | |
| { | |
| T value, value_t; | |
| float smooth; | |
OlderNewer