Top Description Fields Constructors Methods
javax.vecmath

public Class Point2i

extends Tuple2i
implements Serializable
Class Inheritance
All Implemented Interfaces
java.io.Serializable
Imports
java.lang.Math

A 2-element point represented by signed integer x,y coordinates.
Since
vecmath 1.4

Field Summary

Modifier and TypeField and Description
pack-priv static final long
Inherited from javax.vecmath.Tuple2i:
xy

Constructor Summary

AccessConstructor and Description
public
Point2i(int
the x coordinate
x
,
int
the y coordinate
y
)

Constructs and initializes a Point2i from the specified x and y coordinates.

public
Point2i(int[]
the array of length 2 containing x and y in order.
t
)

Constructs and initializes a Point2i from the array of length 2.

public
Point2i(Tuple2i
the Tuple2i containing the initialization x and y data.
t1
)

Constructs and initializes a Point2i from the specified Tuple2i.

public
Point2i()

Constructs and initializes a Point2i to (0,0).

Method Summary

Inherited from javax.vecmath.Tuple2i:
absoluteabsoluteaddaddclampclampclampMaxclampMaxclampMinclampMincloneequalsgetgetgetXgetYhashCodenegatenegatescalescalescaleAddscaleAddsetsetsetsetXsetYsubsubtoString

Field Detail

serialVersionUIDback to summary
pack-priv static final long serialVersionUID

Hides javax.vecmath.Tuple2i.serialVersionUID.

Constructor Detail

Point2iback to summary
public Point2i(int x, int y)

Constructs and initializes a Point2i from the specified x and y coordinates.

Parameters
x:int

the x coordinate

y:int

the y coordinate

Point2iback to summary
public Point2i(int[] t)

Constructs and initializes a Point2i from the array of length 2.

Parameters
t:int[]

the array of length 2 containing x and y in order.

Point2iback to summary
public Point2i(Tuple2i t1)

Constructs and initializes a Point2i from the specified Tuple2i.

Parameters
t1:Tuple2i

the Tuple2i containing the initialization x and y data.

Point2iback to summary
public Point2i()

Constructs and initializes a Point2i to (0,0).