jcuda.jnpp
Class NppiRect

java.lang.Object
  extended by jcuda.jnpp.NppiRect

public class NppiRect
extends java.lang.Object

2D Rectangle This class contains position and size information of a rectangle in two space. The rectangle's position is usually signified by the coordinate of its upper-left corner.


Field Summary
(package private)  int height
          Rectangle height.
(package private)  int width
          Rectangle width.
(package private)  int x
          x-coordinate of upper left corner.
(package private)  int y
          y-coordinate of upper left corner.
 
Constructor Summary
NppiRect()
          Creates a new NppiRect at (0,0) with width=0 and height=0
NppiRect(int x, int y, int width, int height)
          Creates a new NppiRect from the given values
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

x

int x
x-coordinate of upper left corner.


y

int y
y-coordinate of upper left corner.


width

int width
Rectangle width.


height

int height
Rectangle height.

Constructor Detail

NppiRect

public NppiRect()
Creates a new NppiRect at (0,0) with width=0 and height=0


NppiRect

public NppiRect(int x,
                int y,
                int width,
                int height)
Creates a new NppiRect from the given values

Parameters:
x - x-coordinate of upper left corner
y - y-coordinate of upper left corner
width - Rectangle width
height - Rectangle height
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object