Skip to content

Instantly share code, notes, and snippets.

View lianera's full-sized avatar

Lianera lianera

View GitHub Profile
@lianera
lianera / grid-segmentation.cpp
Created September 5, 2018 14:17
grid-segmentation
#include <iostream>
#include <vector>
#include <map>
#include <set>
using namespace std;
const int M = 9;
const int N = M * M;
const int S = 9;
@lianera
lianera / ocean.m
Created February 3, 2016 15:04
A cross-sectional view of ocean simulation. See http://lianera.com/cg/2016/01/29/OceanSectional.html
clear;
width=100;
height=100;
snum=5;
xi=rand(snum,1)*width;
yi=rand(snum,1)*height;
fhi=rand(snum,1)*2*pi;
Ai=rand(snum,1)*0.3;
frei=rand(snum,1)*0.1;
lambda=10;