Need a Matrix Package or How to do in java?

Hello,
I have a project to do that consists of Translating, Scaling and Rotating shapes such as, circles, squares, triangles, pentagons, etc.... I have to translate.... in two dimention using 3 * 3 matrix.
How do I accomplish this in java?
is there something in the MAth Lib, or will I need to download a package and if so whats the best one?
using java 1.4
thanks,
CHad burger
Message was edited by:
reilley35

i think he does want us to do it from scratch, but he
did say we can use built in methods.Leaves you a bit up in the air then! I'm sure that Google will find teh theory for you. You just have to generate the equivalent of an AffenineTransformation class.
>
I dont think I can use what the other poster has.
I think my prof. wants us to actually do the matrix
stuff. Is this possible? possible being easy for a
beginner. Asked my java teacher from a couple of
semesters ago and he said its better to use another
language for that.Seem short sighted of your prof. Java is as good as anything for doing this.
>
everything is pretty much hard coded in the app.
Would seeing my APP help.Not really! Once you get underway then post any problems you get.

Similar Messages

  • I downloaded mountain lion and it updated my java to 1.6 and i need 1.5 for work, how can i get java 1.5 back

    How can I dowload and use java 1.5 and not the new 1.6 that comes with mountain lion

    First, download the version of Java you need. Then, go into Applications > Utilites > Java Preferences. Under the general tab you choose which version you'd like to use by checking or unchecking the versions installed.

  • How do I install JAVA JVM, JServer and XDK in Oracle Express Ed database

    IF I query with SELECT COUNT(*) FROM all_objects WHERE object_type LIKE 'JAVA%'; I get a count of 0.
    I see no DBMS_JAVA package.
    How can I install JAVA JVM, JServer and XDK in the Oracle Express Edition database?
    I see no initjvm.sql, initxml.sql and xmlja.sql scripts. There are catjava.sql and catexf.sql scripts in the rdbms/admin folder.

    cssifah,
    Looks like you want this Web page:
    http://www.oracle.com/technology/products/database/xe/forum.html
    Good Luck,
    Avi.

  • I need your expert opinion on how to create a map with multiple conditions.

    Hello.
    I need your expert opinion on how to create a map with multiple conditions.
    I have a procedure (which i cannot import or re-create in OWB due to the bug), so i am trying to create a map instead :-(
    How can i create a cursors within the map?
    My function creates table and cursor.
    Then it will have to check for duplicates in the tables (the one created and another table) - the criteria for finding duplicates is a number of fields.I then need to place few different conditions (if some attributes are not available) and it has to load cursor based on this conditions. The next step is to fetch the data into the cursor based on what attributes are missing.
    The next thing it will do is insert the data into table (if record doesn't exist), output the error in separate table is record is corrupted, or update the record with changed information.
    In short i need to re-create match / merge but with conditions, iterations etc 'built into' it.
    I can read up on available functions - it's just what would be the best options? and what would be the best approach to do so?
    In my function i use %rowtype - but cannot use it in owb - so what would be the alternative? i don't really want to create a lot of variables and then have a nightmare of maintaing it. are there any tips regarding this?
    having looked through Oracle dedupe - it's not really what i need because it is just DISTINCT.
    I would appreciate any help / advise on this.
    Thank you very much

    thanks a lot for your reply - i will look into this option :-)
    it is a bit more complicated now as i have to re-create the match / merge and then somehow 'tweak' it to achieve the result i need.
    At the moment i am looking to breakdown the package into smaller chunks 'functions' and try creating the map that way.
    Anyway, thank you very much for your suggestion.

  • Begginer needing help with "package" word

    Hi,
    I'm a Java newbie and I'm trying to get comfortable with programming in Java on my Mac (running Mac OS 10.3).
    I found some sample code that I'm testing out at:
    http://www.macdevcenter.com/pub/a/mac/2001/08/03/osx_java.html?page=1
    but I'm having problems using the reserved word "package".
    at the time of each .java file the sample code has:
    package NineSquares;When I compile this in the Terminal window using the command
    javac NineSquares.java
    javac MainFrame.java
    javac EachSquare.javaI get the following error message:
    NineSquares.java:8: cannot resolve symbol
    symbol : class MainFrame
    location: class NineSquares.NineSquares
    new MainFrame();
    ^
    1 error
    David-Salvays-Computer:~/introcs/Project2 davidsalvay$
    when I comment out the package line it compiles fine.
    I don't understand what package means and how I use it. BTW, all my .java files are in the same folder and I've already set the classpath to the file containing my main method (NineSquares.java).
    Any help/suggestions/ideas will be much appreciated!
    --David                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    1. package is always declared first in a class definition.
    2. If you've got a class foobar, and that class is in package x.y.z, then the .class file needs to be in a file foobar.class under the directory hierarchy x\y\z\foobar.class, and where the directory above x is in the classpath.
    3. The official name of that class is x.y.z.foobar. You can import it using import x.y.z.*; or import x.y.z.foobar; Import just lets you use the class without having to always write x.y.z

  • I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?

    I am running out of memory on my hard drive and need to delete files. How can I see all the files/applications on my hard drive so I can see what is taking up a lot of room?
    Thanks!
    David

    Either of these should help.
    http://grandperspectiv.sourceforge.net/
    http://www.whatsizemac.com/
    Or search 'disk size' in the App Store.
    Be carefull with what you delete & have a backup BEFORE you start, you may also want to reboot to try to free any memory that may have been written to disk.

  • My iCloud storage payment is going to be going through is 7 days but the card on file needs to be changed. How do I change he payment type?

    My iCloud storage payment is going to be going through is 7 days but the card on file needs to be changed. How do I change he payment type?

    Welcome to Apple Support Communities
    To change your payment, read > http://support.apple.com/kb/ht1918

  • I have an iPad 2 and need to use air. How do I do that?

    I have an iPad 2 and need to air play.  How do I do that?

    What iOS level are you using? iOS 7?

  • HT3939 I have a iPhone 4 and need to turn off iMessage how do I do that

    I have an iPhone 4 and need to turn off iMessage how do I do that

    Omg that was easy thank you so much and happy holidays

  • I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?

    I have a Macbook Pro 15" that is three and a half years old.  Although it has slowed a bit, it still runs well and runs every program I need. Any tips for how to keep this old computer running well and in good health?
    I have a 250 gig drive and try to keep at least 100 gigs unused at all times, 4 GB 667 MHz DDR2 SDRAM memory, back up with Time Machine and CrashPlan, and have OS X 10.7.3.
    This was my first Mac since an old Apple II GS.  After that I used PC's and got really good at reformatting, replacing drives, reinstalling, defragging, resolving software conflicts, etc.  Since switching back to Macs (five in my extended family now), I haven't had to do any of those things. So, although, the cost is three times as much, the aggrevation has been ten times less.
    I'm retired and living on a fixed income and would therefore like to keep this computer running as opposed to constatntly upgrading.
    That said, any tips?
    Thanks
    It does have a crack on the left of the screen case about 3/4'' up from the bottom.  I've posted that as another question.

    Kappy's Personal Suggestions for OS X Maintenance
    For disk repairs use Disk Utility.  For situations DU cannot handle the best third-party utilities are: Disk Warrior;  DW only fixes problems with the disk directory, but most disk problems are caused by directory corruption; Disk Warrior 4.x is now Intel Mac compatible. Drive Genius provides additional tools not found in Disk Warrior.  Versions 1.5.1 and later are Intel Mac compatible.
    OS X performs certain maintenance functions that are scheduled to occur on a daily, weekly, or monthly period. The maintenance scripts run in the early AM only if the computer is turned on 24/7 (no sleep.) If this isn't the case, then an excellent solution is to download and install a shareware utility such as Macaroni, JAW PseudoAnacron, or Anacron that will automate the maintenance activity regardless of whether the computer is turned off or asleep.  Dependence upon third-party utilities to run the periodic maintenance scripts was significantly reduced since Tiger.  These utilities have limited or no functionality with Snow Leopard or Lion and should not be installed.
    OS X automatically defragments files less than 20 MBs in size, so unless you have a disk full of very large files there's little need for defragmenting the hard drive. As for virus protection there are few if any such animals affecting OS X. You can protect the computer easily using the freeware Open Source virus protection software ClamXAV. Personally I would avoid most commercial anti-virus software because of their potential for causing problems. For more about malware see Macintosh Virus Guide.
    I would also recommend downloading a utility such as TinkerTool System, OnyX 2.4.3, or Cocktail 5.1.1 that you can use for periodic maintenance such as removing old log files and archives, clearing caches, etc.
    For emergency repairs install the freeware utility Applejack.  If you cannot start up in OS X, you may be able to start in single-user mode from which you can run Applejack to do a whole set of repair and maintenance routines from the command line.  Note that AppleJack 1.5 is required for Leopard. AppleJack 1.6 is compatible with Snow Leopard. There is no confirmation that this version also works with Lion.
    When you install any new system software or updates be sure to repair the hard drive and permissions beforehand. I also recommend booting into safe mode before doing system software updates.
    Get an external Firewire drive at least equal in size to the internal hard drive and make (and maintain) a bootable clone/backup. You can make a bootable clone using the Restore option of Disk Utility. You can also make and maintain clones with good backup software. My personal recommendations are (order is not significant):
    Carbon Copy Cloner
    Data Backup
    Deja Vu
    SuperDuper!
    SyncTwoFolders
    Synk Pro
    Synk Standard
    Tri-Backup
    Visit The XLab FAQs and read the FAQs on maintenance, optimization, virus protection, and backup and restore.
    Additional suggestions will be found in Mac Maintenance Quick Assist.
    Referenced software can be found at CNet Downloads or MacUpdate.
    Be sure you have an adequate amount of RAM installed for the number of applications you run concurrently. Be sure you leave a minimum of 10% of the hard drive's capacity as free space.
    Adding more RAM, if feasible, and a new, faster hard drive may also help pep it up a little.

  • I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.

    I am using UPK developer 12.1.0 single user. My sofware has crashed and needs reinstallation. Please suggest how can I take back up of my source files. I am unable to open the application and i can not locate the library backup folder on my local machine.
    Also, does reinstallation takes the back up automatically or the files will be lost. Please help.

    Here are a bunch of scripts to get folder size under all circumstances.  Take your pick.
    https://gallery.technet.microsoft.com/scriptcenter/site/search?query=get%20folder%20size&f%5B0%5D.Value=get%20folder%20size&f%5B0%5D.Type=SearchText&ac=2
    ¯\_(ツ)_/¯

  • My iTunes account has been disabled. I need to know why, and how to get it deactivated.

    My its account has been disabled. I need to know why and how can I get it re-activated? I have a lot of money in that account!

    See if this helps -> http://support.apple.com/kb/TS2446

  • HT1338 my mac is running 10.5.8, I bought a new Nano, itunes is prompting me to get the current itunes, but my mac will not take it, states I need 10.6.8.  How do I get that?  When I run a software update, system says there is none.  Help

    my mac is running 10.5.8, I bought a new Nano, itunes is prompting me to get the current itunes, but my mac will not take it, states I need 10.6.8.  How do I get that?  When I run a software update, system says there is none.  Help

    Click here, check that your computer meets the requirements, buy and install the DVD, and then run Software Update.
    (73181)

  • I have Adobe Photoshop CS5 installed in two computers. The hard drive of my home computer crashed and I had no time to deactivate the software. The hard drive needed to be formatted. How can I activate the software CS5 again ? Thank you for an answer.

    I have Adobe Photoshop CS5 installed in two computers. The hard drive of my home computer crashed and I had no time to deactivate the software. The hard drive needed to be formatted. How can I activate the software CS5 again ? Thank you for an answer.

    If it's the same computer, same CPU and same HD, no de-activation or re-activation should be necessary.
    Install from scratch and apply all updates manually.
    Please do a forum search.  I and others have repeatedly answered the question about failed updates of CS5 a whole bunch of times recently.
    Bottom line:  the Adobe auto updater is utterly useless in CS5 and prior versions.  You need to download the updates and apply them manually yourself.
    I and others have even supplied the links for Mac and Win, which you haven't even bothered to specify.

  • I downloaded a Trial version of Adobe Acrobat XI.  Now the trial has runout and I've signed up for a subscription.  However, my software still needs a serial number.  How can I get a serial number for the installed software?

    I downloaded a Trial version of Adobe Acrobat XI.  Now the trial has runout and I've signed up for a subscription.  However, my software still needs a serial number.  How can I get a serial number for the installed software?

    There is no serial number and you don't need one. What you need for a subscription is to SIGN IN within Acrobat, so it knows the subscriptions you own.

Maybe you are looking for