Can somebody explain what happens here??

Hi everyone.
I was just wondering if someone could explain the following piece of code to me.
Thanks a lot.
Transform3D t3d = new Transform3D();
Transform3D ct3d = new Transform3D();
Matrix4d matrix = new Matrix4d();
t3d.rotY(angle);
viewingPlatformTG.getTransform(ct3d);
ct3d.get(matrix);
ct3d.setTranslation(new Vector3d(0.0, 0.0, 0.0));
ct3d.mul(t3d);
ct3d.setTranslation(new Vector3d(matrix.m03, matrix.m13, matrix.m23));
viewingPlatformTG.setTransform(ct3d);
////////////////////////////////////////////////////

Well I think the following task shall be accomplished:
1)The rotation around the y axis should be concatenated to the rotation already done with the object.
2)The rotation center shall be the center of the object (here the Viewingplatform), i.e. the center of the local coordinate system.
For 2) first the translation part is saved in matrix (in fact the whole transformation is saved), then the translation part is set to 0,0,0 which leaves only the rotation part (thus the center of local coordinate system is center of global coordinate system). Then the new rotation is concatenated. Then the translation part (contained in matrix.m03, ...) is restored thus the object is at the original position again.
Hope that helps.

Similar Messages

  • Can someone explain whats happened here...

    Hi guys, it appears something has gone wrong with my website somewhere.
    www.allroots.org - page not displaying - www.allroots.org/retreats
    Ive just made a new page from .dwt called retreats. When i preview the template on its own it all looks fine
    but when i preview the retreats page made from template it doesnt display any of the images ive used in the
    template or on the editable region of the retreats page.
    Does this have anything to do with where my images are being saved or the name of my .html pages?
    Not sure whats gone wrong, id appreciate any help you can offer.
    Thanks
    Benn

    You are having us on, yes???
    In case you are not, have a look at the following lines and tell us where the link to the images are. As far as I can tell there is only one link, that being the very first one.
    <div id="sarkphoto"><img src="retreats page images/sar/www.allroots.org/retreats/retreats page images/sark.jpgk.jpg" width="439" height="146" alt="sark photograph" /> </div>
    <div id="sarkinfo"> <p>sark</p> </div>
    <div id="ibizaphoto"> </div>
    <div id="ibizainfo"> <p>ibiza</p> </div>
    <div id="indiaphoto"> </div>
    <div id="indiainfo"> <p>india</p> </div>
    <div id="gowerphoto">  </div>
    <div id="gowerinfo"> <p>gower</p> </div>

  • GarageBand won't open! I can't explain what happens, so here's a video I made of the issue...

    GarageBand won't open!  I can't explain what happens, so here's a video I made of the issue:
    http://www.youtube.com/watch?v=HUIwsDx7sr4
    Please help!  This is very important, as I work with music.

    Hi Duckman,
    I've asked for this thread to be moved to iLife > GarageBand. Hopefully you'll get a better response there here than this forum which is GarageBand for iOS.
    tt2
    Message was edited by: turingtest2

  • Since syncing with iCloud all my photos in my photo app are much lower resolution than they were before. Can anyone explain what happened an how I might get back my high resolution photos?

    Since syncing with iCloud all my photos in my photo app are much lower resolution than they were before. Can anyone explain what happened an how I might get back my high resolution photos?

    Thanks again.
    Unfortunately I don't have iPhoto (running Windows).
    I did, however, figure out a work-around.
    I created an empty directory on my computer, and told iTunes to "Sync Photos from..." that empty directory. This deleted all the photos from the iPod (go figure).
    I then set the "Sync Photos from..." dropdown back to directory that actually contained all my photos, and sync'd again.
    And, yes, they all loaded onto the iPod at their better, higher resolution.
    Thanks for all your help. Photos (and wallpaper) are perfect, again

  • Can somebody explain what the Radix number is in Character

    I am looking for a good way of converting numbers to characters and I was reading up on the Character API, and they are using this term Radix, and I don't understand what that is all about. Can somebody explain what the radix is for?

    Wait a second I tried this code out and this is the output
    System.err.println(Character.digit('a', 10));and i get a -1, which means "not a valid digit in the specified radix.
    Then I tried other combinations like
    System.err.println(Character.digit('a', 11));
    System.err.println(Character.digit('b', 12));
    System.err.println(Character.digit('c', 13));and they all work, and but with only those sequential characters and numbers. So right now I am very confused as to what this radix, or this function serves. Can somebody explain?

  • Can somebody explain what is LUW ?

    Hi Gurus,
    can somebosy explain me what is LUW(Logical unit of work).
    I went through some book, but i am not able to get the concept.
    can somebody help me out inthis
    Thanks & regards
    Rajesh Meda

    hello Rajesh,
    Did you go this through this:
    http://help.sap.com/saphelp_nw04s/helpdata/en/41/7af4bfa79e11d1950f0000e82de14a/content.htm
    Check this out.
    Anyways as you know in SAP the user acting a presentation level tries to read/write data from database using SAP application layer. This entire activity consists of several dialog steps (small activities if you may) and is termed as a LUW. So an SAP LUW consists of several dialog steps which are dependent on each other. Only if all are completed is a LUW executed successfully and in case of any failures entire thing is roll backed and terminated.
    Regards.
    Ruchit.

  • Time Machine seems confused - can somebody explain what I am seeing?

    This is on my new MacBook Pro retina 13 inch. And I just started using Time Machine with it about 10 days ago.
    I was just looking at a certain folder via Time Machine and found the following strange results, as I "go back in time."
    Now: a folder and 3 files (that is correct).
    Today at 12:47 pm: 1 file (that is correct, because I created the folder after that, and added the 3 files).
    Today at 12:47 pm: no content - why is this entry even here? It's time-stamped the same as the later one.
    Today at 11:46 am: a folder and 3 files! The same as "Now." Why would that be? It doesn't make any sense.
    Today at 11:45 am: the same folder and 3 files as "Now" - with a time-stamp one minute earlier.
    Today at 11:45 am:  a repeated entry.
    It seems to be confused with all the entries prior to Today at 12:47 pm.
    Any idea why?
    Thanks,
    Doug

    Anyway, I see what the Time Machine problem is. It is an artifact resulting from the fact that the finder window I was examining is on an external monitor.
    Time Machine displays on the MBP monitor, but none of the items are selectable, and some entries are incorrect.
    If I move the finder window to my MBP display and run Time Machine the entries are correct and selectable.
    So Time Machine apparently just doesn't play well with what is showing on an external monitor.
    AppleCare's response to that was: "Well, that is odd."
    Anyway, that is how it appears to work. I'll just make sure to not use Time Machine with a finder window on an external monitor for now.
    I don't know whether to mark this as "resolved" or not. I think I will, but Time Machine does seem to have a bug regarding finder windows on external monitors.
    doug

  • I have iOS7 on my iPhone4. I turned on the Voice Over option and now my phone is not working at all. At first it was freezing and not accepting any commands. Now all I have is a blank sceen. I can't get back into it. Any ideas what happened here?

    I have iOS7 on my iPhone4. I turned on the Voice Over option and now my phone is not working at all. At first it was freezing and not accepting any commands. Now all I have is a blank sceen. I can't get back into it. Any ideas what happened here?

    Hi Jeffny01,
    If your iPhone is not responding, you may find the following article helpful:
    iOS: Not responding or does not turn on
    http://support.apple.com/kb/TS3281
    Regards,
    - Brenden

  • I have downloaded ios 5.1.1 and the wifi has stop working or it would stay on for less then 20min its only 9 months old can someone explain what is happening and if some know how to fix it

    I have downloaded ios 5.1.1 and the wifi has stop working or it would stay on for less then 20min its only 9 months old can someone explain what is happening and if some know how to fix it

    I have taken it back to the Apple store genius bar, but they say they don't see anything wrong. Well unless you use it all day and experience the problems when they happen, you wont see anything wrong. But there are lots wrong with it. But this would be the same store as I purchased the phone. And they backed up my old Iphone 4, but were not able to get anything to load back onto my new phone. So, I lost pretty much everything. But over time, some of my contacts have started showing up, although i am still missing over 800 of them.

  • I have an iPhone 4 ... MC536LL ... I read that this version its unlocked factory, but this one i cant used like an unlocked Phone.... Can somebody told what is happen with it?

    I have an iPhone 4 ... MC536LL ... I read that this version its unlocked factory,
    but this one i cant used like an unlocked Phone....
    Can somebody told what is happen with it?

    As RG said, you cannot determine solely from the model number whether an iPhone is unlocked or not. In what country and from what dealer did you buy this iPhone?

  • I have a MacBook running OS X v10.6.8 and I'm trying to upgrade to Mouton Lion but I can"t download it from the app store. It says I need a intel core duo which i have. does anyone know whats happening here?

    I have a MacBook running OS X v10.6.8 and I'm trying to upgrade to Mouton Lion but I can"t download it from the app store. It says I need a intel core duo which i have. does anyone know whats happening here?

    Check that your computer is compatible with Mountain Lion.
    To check the model number hold down the option/alt key, go to the Apple menu and select System Information.
    MacBook (Late 2008 Aluminum, or Early 2009 or newer) model number 5,1 or higher
    MacBook Pro (Mid/Late 2007 or newer) model number 3,1 or higher
    Your Mac needs:
    OS X v10.6.8 or OS X Lion already installed
    2 GB or more of memory (More is better - 4 GB minimum seems to be the consensus)
    8 GB or more of available space
    If your computer isn't compatible, you might be able to upgrade to Lion. 
    Computer Compatibility - Lion
    Check to make sure your applications are compatible. PowerPC applications are no longer supported.      
    Application Compatibility
    You can also check which applications are PowerPC by going to the  menu, select About this Mac, click on More info…, then click System Report and select Software/Applications.

  • Can somebody explain to me how java and xml are related?

    Hi guys
    im new to java and xml.Been reading a lot regarding java and don't seem to have a problem with it...
    the problem is the xml part...im doing a simple GUI project using swing(online store) and i have to convert it to xml
    I have absolutely NO IDEA why i must convert my java to xml and have no idea how to do that.I been reading on the net that xml is a exten~ markup language and it is better and useful.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?
    2)why do ppl want to convert java to xml when they can just stick to java
    3)what is actually xml...
    4)Do i need a program to create xml like i need jcreater to create java application
    5)How do we actually convert?is there any links that you guys could tell me?
    thank you
    tomleo

    im new to java and xml.Been reading a lot regarding
    java and don't seem to have a problem with it...Okay.
    the problem is the xml part...im doing a simple GUI
    project using swing(online store) and i have to
    o convert it to xmlYou have to? So presumably somebody in a position of authority told you that?
    I have absolutely NO IDEA why i must convert my java
    to xml and have no idea how to do that.I been reading
    on the net that xml is a exten~ markup language and
    it is better and useful.I have no idea either (besides which, it doesn't make sense). But why ask us? Somebody told you to do that, ask them why.
    Sure, XML is useful. But it isn't a programming language so it can't be used as a substitute for Java.
    Can somebody explain to me in layman terms
    1)how is java and xml related in?They aren't related, except perhaps in that they are both used in computers.
    2)why do ppl want to convert java to xml when they
    can just stick to javaThey don't.
    3)what is actually xml...Start here for numerous definitions:
    http://www.google.ca/search?hl=en&lr=&oi=defmore&q=define:XML
    4)Do i need a program to create xml like i need
    jcreater to create java applicationNo, XML is just text. But then Java code is just text too.
    5)How do we actually convert?is there any links that
    you guys could tell me?You don't convert Java to XML. My guess is that because you don't know much about Java or XML, you have misinterpreted something that somebody told you.

  • Can somebody explain this store procedure

    Hi there
    can somebody explain me this Oracle store procedure, I am not able to figure it out anything from this SP :(
    CREATE OR REPLACE PROCEDURE MyDummySchema.MyDummyStoreProcedure
    (a_created_by_proc SomethingDummy.CREATED_BY_PROC%TYPE)
    as
    BEGIN
    /* Set up your global variables */
    XYZ_FORMAT.g_s_created_by_proc := a_created_by_proc;
    XYZ_FORMAT.g_d_current_time := sysdate;
    XYZ_GENERATEEODQUEUE.XYZ_GENERATEQUEUE;
    XYZ_PROCESSQUEUE.XYZ_PROCESSTRADES;
    XYZ_SYNC_SOMETHING(a_created_by_proc);
    END MyDummyStoreProcedure;

    Here
    XYZ_FORMAT, XYZ_GENERATEEODQUEUE, XYZ_PROCESSQUEUE
    are package names;
    XYZ_SYNC_SOMETHING is another PL/SQL procedure name; the procedure takes one parameter;
    XYZ_FORMAT.g_s_created_by_proc, XYZ_FORMAT.g_d_current_time are global variables defined in the package XYZ_FORMAT, in package definition part of it;
    XYZ_GENERATEEODQUEUE.XYZ_GENERATEQUEUE,
    XYZ_PROCESSQUEUE.XYZ_PROCESSTRADES are stored procedures w/o parameters definned in packages XYZ_GENERATEEODQUEUE and XYZ_PROCESSQUEUE respectively.
    But only the author [hopefully] knows what is the point of all this stuff :)

  • I had about 17 tabs open on my browser. I clicked a link to open another one and when the tab opened the other tabs disappeared. What happened here?

    I had 17 tabs open. When I clicked a link to open a new tab all the other tabs disappeared. I thought a new window had been opened instead, but this is not the case there is only one window open on my mozilla browser. If I try to close the window I get a message that says there are 26 tabs opened, I opened 9 more tabs. Can anybody tell me what is going on here or how I might figure this out?
    Also, when I close a tab and try to reopen the tab using the right click menu, the 'undo closed tab' menu is disabled. What happened here? Can anybody tell me how to re-enable it?

    I've seen some occasional glitches with windows losing the toolbar area, but not one that disturbing.
    If you click and drag down on the 18th tab enough to tear it off into a new window (and possibly the same for the other newer tabs you opened), can you get the 17 tabs to re-appear in the first window? If not, I'm not sure there is a way to mend the window. If it's NOT a private browsing session, you might have to use Firefox > Exit (or File > Exit) and restore your session to get a working window. That won't work with a private window...
    As a backstop, you might also right-click a tab in the window > Bookmark All Tabs before ending your session. (Because session cookies and other transient data are not preserved when you reload bookmarks, this isn't as effective as restoring a session. On the other hand, bookmark storage is less fragile than session data storage.)
    Regarding Undo Close Tab, are the closed tabs listed on the History menu under Recently Closed Tabs? If so, that context menu item definitely should be enabled.

  • Can somebody explain how dunning & hold are linked toghter

    In the IMG, i can not find out How dunning are linked with academic hold in the student file and can somebody explain how dunning is linked with academic hold.
    I defined hold type in IMG but i can not find out how to link with hold type with dunnng ?.
    regards,
    jin dal

    Dear Song,
    Answers to your queries are given below:
    Sample function module:
    u2022 Is only used as a template for creating the standard function modules to be carried out
    u2022 Defines the interface that is binding for the standard function modules
    u2022 Describes in its documentation what the underlying event can be used for
    Standard function module:
    Name of application-specific standard function module that can be carried out at a given time.
    The standard function module interface corresponds to the sample function module, which it must match exactly.
    Active function module:
    Function module which is to be called for the specified event.
    If you don't want to take printout then use Functional module 340 as Event 0340 is called when all data is read for a dunning notice.
    You can use standard function module FMCA_DUNNING_READ_ITEMS_0340 for this purpose.
    Hope it will solve your query.
    Warm Regards
    Vinod Kumar

Maybe you are looking for

  • Dynamic sql query

    Hi, i neeed to create a table of data of other tables which needs to be executed in cursor level, for eg i need to create CURSOR cur IS select object_name from user_objects where object_type = 'TABLE' and object_name like '%JSP%' and rownum<3; creata

  • Whi isn't my Ipad able to connect to wifi when I was able to previously?

    A few days ago I had been able to connect to my home Wifi and now I can't get onto the net.  Why and what can I do to get my Wifi back on line?

  • Problem installing a downloaded add-on.

    I have downloaded mmsAutocorrect into Thunderbird; it appears in Extensions in Addon Manager. I have followed the directions through: tools-add-ons click add-ons type name in search field; press enter (add-on appears in Search). Select desired add-on

  • Weblogic.transaction.RollbackException:

    Hi All, We are using a JMS bridge in our senario.The Flow is as follows. Message is been posted in a queue(JMS Queue) and the host Queue recevies thye message from there it is configured with a bridge where it is targeted to different weblogic server

  • Flash Video Not Paused At Start

    Hi there I'm trying to publish a flash video to the web but even though I've ticked the "paused at start" option in the publish settings, it still plays when the page is loaded. I've also tried adding various things such as autoplay='false', autostar