Re: about accessor
Posted by Thinker Li on 2010-09-19 16:52
From: Thinker K.F. Li <thinker@eeebox.branda.to>
Subject: about accessor
Date: Mon, 20 Sep 2010 00:48:28 +0800 (CST)
> Days ago! We had told about define accessor in C. Actually,
> Javascript itself can define accessors. Please check following URL
>
> http://ajaxian.com/archives/getters-and-setters-in-javascript
>
> So, we had better use this facilty to implement obj.x and obj.y.
My another idea is to keep a copy of transform matrix when an coord is
created. And we can compute new position and center of an object by
transforming position between the spaces defined by backuped matrix
and current matrix.
Home / Developer API / Tour / Get a Project - Solutions for Bug & Issue Tracking, Collaboration Tools, Subversion Hosting, Git Hosting
Madbutterfly is powered by Assembla.
0 Comments