Point in java.awt.geom
Why is there nothing in java.awt.geom that uses a Point?
I want Path type objects and I want to construct them with eg an array of
Points.
GeneralPath etc, they all deal with primitives.
Why is that?
--
Mike W
.
Relevant Pages
- Re: Java ready for number crunching?
... I don't like boxing and unboxing primitives as there is a space and speed penality (or is there? ... There is generally little to no "penalty" for boxing and unboxing. ... Please let Sun, IBM, NIST, the academy, or any authors of java numerical software know of your insight. ... Just for information, looping over an array of ten million ints and adding them up took me ~30 ms. Doing the same with an array of Integers and using auto-unboxing took me ~55 ms. So, 25 ms to unbox ten million ints, or 2.5 ns to unbox one. ... (comp.lang.java.programmer) - RE: Converting an Array to values
... "Mike H" wrote: ... "Gunti" wrote: ... Function listvalues(key As Integer, Rng As Range) ... Now the list of numbers is in an array. ... (microsoft.public.excel.misc) - Re: Referencing elements of a calculated matrix
... Mike Karr wrote: ... The end operator must be used within an array index ... the colon operator has some strange behaviour too ... (comp.soft-sys.matlab) - Re: putClientProperty
... Assuming m is correctly declared as an array (I didn't read your code ... that you're struggling with Java's concepts of objects and primitives. ... was stored as an Integer object (the primitive int wrapped in a Object), ... However, rowIndex is an object, an instance of the class Integer. ... (comp.lang.java.gui) - Re: Java ready for number crunching?
... I don't like boxing and unboxing primitives as there is a space and speed penality (or is there? ... Just for information, looping over an array of ten million ints and adding them up took me ~30 ms. Doing the same with an array of Integers and using auto-unboxing took me ~55 ms. So, 25 ms to unbox ten million ints, or 2.5 ns to unbox one. ... My code was never creating new wrapper objects, but yours does, and then puts them in an array. ... It remains to be seen what impact escape analysis optimization will have on numerics. ... (comp.lang.java.programmer) |
|