Skip to content

Instantly share code, notes, and snippets.

@tkymx
tkymx / Vector.h
Created January 25, 2013 04:42
ベクトル表現のために使用
#pragma once
#include<math.h>
#define D3DX_PI ((double) 3.141592654f)
#define D3DX_1BYPI ((double) 0.318309886f)
#define D3DXToRadian( degree ) ((degree) * (D3DX_PI / 180.0f))
#define D3DXToDegree( radian ) ((radian) * (180.0f / D3DX_PI))
@tkymx
tkymx / KdTreeMulti.cpp
Created January 25, 2013 04:37
KdTreeを汎用化して使おうかなと思って作成した。
#include"Vector.h"
#include<vector>
using namespace std;
/*
KdTreeMulti
@tkymx
tkymx / OpenGLViewer.cpp
Last active December 11, 2015 13:38
実験で得たデータを三次元的に視覚できるようなツールを作ってみた z,xで拡大、縮小 マウスでカメラ操作 drawの中で描画することができます
#include <GL/glut.h>
#include<windows.h>
#include"Vector.h"
using namespace std;
#define WINDOW_WIDTH (640.0)
#define WINDOW_HEIGHT (480.0)