Results 1 to 2 of 2
  1. #1
    proggrammer is offline Member
    Join Date
    Jun 2012
    Rep Power

    Question Point2D in integer Grid

    Hi, I can see that

    Java Code:
    Point2D point = new Point2D()
    defines a point in 2D with double type. but I need a 2D point with integral co-ordinates. Kindly help. Actually i want to work only with 2D points having inegral components.

  2. #2
    pbrockway2 is offline Moderator
    Join Date
    Feb 2009
    New Zealand
    Rep Power

    Default Re: Point2D in integer Grid

    "Point2D point" declares a variable of type Point2D which is an abstract class. Check its API docs to see what concrete subclasses are possible.

Similar Threads

  1. Grid help
    By lolmister in forum Java 2D
    Replies: 1
    Last Post: 05-24-2012, 06:35 AM
  2. Open Grid Scheduler/Grid Engine
    By java software in forum Java Software
    Replies: 0
    Last Post: 03-27-2012, 08:00 PM
  3. Integer Comparison, Outputting Largest Integer Not Working
    By killingthemonkey in forum New To Java
    Replies: 4
    Last Post: 10-16-2011, 09:59 PM
  4. convert unsigned integer to signed integer in java?
    By diskhub in forum New To Java
    Replies: 6
    Last Post: 05-17-2010, 01:50 AM
  5. Replies: 1
    Last Post: 04-06-2009, 07:45 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts