kusozako hedder

Dependents:   three_car

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers omni_three.cpp Source File

omni_three.cpp

00001 #include "omni_three.h"
00002 
00003 Omni::Omni(double zero, double one, double two)
00004 {
00005     omni_distance[0] = zero;
00006     omni_distance[1] = one;
00007     omni_distance[2] = two;
00008 }
00009 
00010 double Omni::vec(double radian,int dis)
00011 {
00012     return sin(radian - omni_distance[dis]);
00013 }