## enlightenment-devel

 [E-devel] [Elementary] [edc map] How to calculate EDC map's rotated coordinates ? From: Sumanth Krishna Mannam - 2012-11-15 14:39:08 ```Hi, I have a query related to EDC map. I am adding EDC map to an edc RECT part and I am giving some rotation angle (say 30 degrees, Z dir) in edc itself. [Map's perspective, rotation center all are set as the same part.] Can anyone please tell me if there is any direct way (APIs) to calculate the geometry of this rotated RECT part in .c file ? Now, suppose, I am calulating the rotated geometry by using the rect part's edje_object & applying Rotation Matrix on its geometry(Ø = 30): it is giving me correct co-ordinates for the first time. But once the object RESIZES or its position changes, this method is giving me the wrong co-ordinates. How can I calculate the co-ordinates of BOX in which the rect part is inscribed during map's rotation. Please suggest me a solution in such cases. Thank you, Sumanth ----------------------------------------------------------------------------------------------------------------------------------------------------------- Sumanth Krishna Mannam Senior Software Engineer Bangalore, India```
 Re: [E-devel] [Elementary] [edc map] How to calculate EDC map's rotated coordinates ? From: Carsten Haitzler (The Rasterman) - 2012-11-16 05:17:28 ```On Thu, 15 Nov 2012 14:38:57 +0000 (GMT) Sumanth Krishna Mannam said: sim,ple answer - u cant calculate the coords yourself. it's done by edje for you based on rotation, rotation center and part geometry. if you want to do map by hand outside of edje you perfectly can... but it's outside and now up to you. as for your last question - i don't understand exactly what you want. can you give a better/more detailed description/example? > Hi, > > I have a query related to EDC map. > > I am adding EDC map to an edc RECT part and I am giving some rotation angle > (say 30 degrees, Z dir) in edc itself. [Map's perspective, rotation center > all are set as the same part.] Can anyone please tell me if there is any > direct way (APIs) to calculate the geometry of this rotated RECT part in .c > file ? > > Now, suppose, I am calulating the rotated geometry by using the rect part's > edje_object & applying Rotation Matrix on its geometry(Ø = 30): it is giving > me correct co-ordinates for the first time. But once the object RESIZES or > its position changes, this method is giving me the wrong co-ordinates. > > How can I calculate the co-ordinates of BOX in which the rect part is > inscribed during map's rotation. Please suggest me a solution in such cases. > > > Thank you, > Sumanth > > ----------------------------------------------------------------------------------------------------------------------------------------------------------- > Sumanth Krishna Mannam > Senior Software Engineer > Bangalore, India > ------------------------------------------------------------------------------ > Monitor your physical, virtual and cloud infrastructure from a single > web console. Get in-depth insight into apps, servers, databases, vmware, > SAP, cloud infrastructure, etc. Download 30-day Free Trial. > Pricing starts from \$795 for 25 servers or applications! > http://p.sf.net/sfu/zoho_dev2dev_nov > _______________________________________________ > enlightenment-devel mailing list > enlightenment-devel@... > https://lists.sourceforge.net/lists/listinfo/enlightenment-devel > -- ------------- Codito, ergo sum - "I code, therefore I am" -------------- The Rasterman (Carsten Haitzler) raster@... ```