[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple advice needed on input and output
From: |
Juan Pablo Carbajal |
Subject: |
Re: simple advice needed on input and output |
Date: |
Sat, 28 Jul 2012 00:42:17 +0200 |
On Fri, Jul 27, 2012 at 11:13 PM, <address@hidden> wrote:
> Vilsu,
>
>> -----Original Message-----
>> From: address@hidden [mailto:help-octave-
>>
>> This project is for fun only. I wanted to find certain types of moves
>> for rubics cube. Someone must have done this before me, but anyhow.
>
> I need that software, so don't say it's not worthwhile :-)
>
> Allen
> _______________________________________________
> Help-octave mailing list
> address@hidden
> https://mailman.cae.wisc.edu/listinfo/help-octave
Ok, you may want to read this and try to understand their source code
http://www.cube20.org/
even use their applet.
However if you want to create rotation matrices look at rotv in the
linear-algebra 2.2.0 package (if you are in linux, in octave prompt
run 'pkg -forge install linear-algebra')
The faces of the cube cab be encoded with their normals ([1 0 0], [-1
0 0], [0 1 0], [0 -1 0], etc ...) and the angles you need are n*pi/2,
being n the number of rotations around that normal, n=1,2,3 (because 4
== 0).
With that you can almost encode the whole cube... there are several
more details to encode, I leave them for your fun. But I guess you
have cracked it already.
Good luck,
--
M. Sc. Juan Pablo Carbajal
-----
PhD Student
University of Zürich
http://ailab.ifi.uzh.ch/carbajal/
- Re: simple advice needed on input and output, (continued)
- Re: simple advice needed on input and output, Przemek Klosowski, 2012/07/24
- Re: simple advice needed on input and output, vilsu, 2012/07/27
- Re: simple advice needed on input and output, Jordi Gutiérrez Hermoso, 2012/07/27
- Re: simple advice needed on input and output, vilsu, 2012/07/27
- Re: simple advice needed on input and output, Doug Stewart, 2012/07/27
- RE: simple advice needed on input and output, Allen.Windhorn, 2012/07/27
- Re: simple advice needed on input and output,
Juan Pablo Carbajal <=
- Re: simple advice needed on input and output, vilsu, 2012/07/28
- Re: simple advice needed on input and output, marco atzeri, 2012/07/08
Re: simple advice needed on input and output, vilsu, 2012/07/08