Method for approximation of caps of smooth line segments
AssigneeSun Microsystems, Inc.
InventorGunawan Ali-Santosa
Life of this patent
Estimating the term…
Loading patent…
AssigneeSun Microsystems, Inc.
InventorGunawan Ali-Santosa
Estimating the term…
Starting and ending caps of smooth line segments may be drawn on a computer display without complicated calculations and avoiding the use of inverse square root calculations by drawing the caps using rectangles. The direction of the line segment may be determined, and using the direction certain pixels in a four-pixel grouping may be selectively illuminated. The normalized intensity values of the illuminated pixels may be determined by computing an x-fraction and a y-fraction, representing the distance in the x-direction and y-direction between a sample origin point in a corner of the four-pixel grouping and the closest corner of a region covered by the mathematical origin or endpoint corrected for the thickness of the line segment. It is generally preferable for only two pixels to be illuminated for each cap, the pixels chosen according to a formula ensuring that there are no perception problems when two smooth line segments share a common mathematical origin or endpoint.
A method for plotting a starting cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array, said line segment having a mathematical origin and a thickness, the method comprising:
A method for plotting an ending cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array, said line segment having a mathematical end point and a thickness, the method comprising:
A method for plotting a starting cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array with an x-axis, wherein said x-axis in a positive x-direction has a direction of 0 degrees, said line segment having a mathematical origin, a direction, and a thickness, the method comprising:
A method for plotting an ending cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array with an x-axis, wherein said x-axis in a positive x-direction has a direction of 0 degrees, said line segment having a mathematical end point, a direction, and a thickness, the method comprising:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to plot a starting cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array, said line segment having a mathematical origin and a thickness, the method comprising:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to plot an ending cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array, said line segment having a mathematical end point and a thickness, the method comprising:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to plot a starting cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array with an x-axis, wherein said x-axis in a positive x-direction has a direction of 0 degrees, said line segment having a mathematical origin, a direction, and a thickness, the method comprising:
A program storage device readable by a machine, tangibly embodying a program of instructions executable by the machine to plot an ending cap of a line segment on a computer display, said computer display comprising a plurality of pixels in a rectilinear array with an x-axis, wherein said x-axis in a positive x-direction has a direction of 0 degrees, said line segment having a mathematical end point, a direction, and a thickness, the method comprising:
Dependencies are inferred from the claim text.