Package javax.vecmath
Class Point2i
- java.lang.Object
-
- javax.vecmath.Tuple2i
-
- javax.vecmath.Point2i
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
public class Point2i extends Tuple2i implements java.io.Serializable
A 2-element point represented by signed integer x,y coordinates.- Since:
- vecmath 1.4
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Point2i()
Constructs and initializes a Point2i to (0,0).Point2i(int[] t)
Constructs and initializes a Point2i from the array of length 2.Point2i(int x, int y)
Constructs and initializes a Point2i from the specified x and y coordinates.Point2i(Tuple2i t1)
Constructs and initializes a Point2i from the specified Tuple2i.
-
-
-
Constructor Detail
-
Point2i
public Point2i(int x, int y)
Constructs and initializes a Point2i from the specified x and y coordinates.- Parameters:
x
- the x coordinatey
- the y coordinate
-
Point2i
public Point2i(int[] t)
Constructs and initializes a Point2i from the array of length 2.- Parameters:
t
- the array of length 2 containing x and y in order.
-
Point2i
public Point2i(Tuple2i t1)
Constructs and initializes a Point2i from the specified Tuple2i.- Parameters:
t1
- the Tuple2i containing the initialization x and y data.
-
Point2i
public Point2i()
Constructs and initializes a Point2i to (0,0).
-
-