# Point2I

Engine/source/math/mPoint2.h

2D integer point

More...

```S32
```
```x
```

X position.

```S32
```
```y
```

Y position.

## Public Static Attributes

```const Point2I
```
```Max
```
```const Point2I
```
```Min
```
```const Point2I
```
```One
```
```const Point2I
```
```Zero
```

## Public Functions

```Point2I()
```

Create an uninitialized point.

```Point2I(const Point2I & )
```

Copy constructor.

```Point2I(S32 in_x, S32 in_y)
```

Create point from two co-ordinates.

```void
```
```convolve(const Point2I & )
```

Convolve this point by parameter.

```bool
```
```isZero()
```

Is this point at the origin? (No epsilon used)

```F32
```
```len()
```

Get the length of the point.

```S32
```
```lenSquared()
```

Get the length-squared of the point.

```void
```
```neg()
```

Invert sign of point's co-ordinates.

```operator const S32*()
```
```operator S32*()
```
```bool
```
```operator!=(const Point2I & )
```
```Point2I
```
```operator*(const Point2I & )
```
```Point2I
```
```operator*(S32 )
```
```Point2I &
```
```operator*=(const Point2I & )
```
```Point2I &
```
```operator*=(S32 )
```
```Point2I
```
```operator+(const Point2I & )
```
```Point2I &
```
```operator+=(const Point2I & )
```
```Point2I
```
```operator-()
```
```Point2I
```
```operator-(const Point2I & )
```
```Point2I &
```
```operator-=(const Point2I & )
```
```Point2I
```
```operator/(const Point2I & )
```
```Point2I
```
```operator/(S32 )
```
```Point2I &
```
```operator/=(const Point2I & )
```
```Point2I &
```
```operator/=(S32 )
```
```bool
```
```operator==(const Point2I & )
```
```void
```
```set(S32 in_x, S32 in_y)
```

Set (x,y) position.

```void
```
```setMax(const Point2I & )
```

Store greater co-ordinates from parameter in this point.

```void
```
```setMin(const Point2I & )
```

Store lesser co-ordinates from parameter in this point.

```void
```
```zero()
```

Zero all values.

## Detailed Description

2D integer point

Uses S32 internally.

## Public Attributes

```S32 x
```

X position.

```S32 y
```

Y position.

## Public Static Attributes

```const Point2I Max
```
```const Point2I Min
```
```const Point2I One
```
```const Point2I Zero
```

## Public Functions

```Point2I()
```

Create an uninitialized point.

```Point2I(const Point2I & )
```

Copy constructor.

```Point2I(S32 in_x, S32 in_y)
```

Create point from two co-ordinates.

```convolve(const Point2I & )
```

Convolve this point by parameter.

```isZero()
```

Is this point at the origin? (No epsilon used)

```len()
```

Get the length of the point.

```lenSquared()
```

Get the length-squared of the point.

```neg()
```

Invert sign of point's co-ordinates.

```operator const S32*()
```

```operator S32*()
```

```operator!=(const Point2I & )
```

```operator*(const Point2I & )
```

```operator*(S32 )
```

```operator*=(const Point2I & )
```

```operator*=(S32 )
```

```operator+(const Point2I & )
```

```operator+=(const Point2I & )
```

```operator-()
```

```operator-(const Point2I & )
```

```operator-=(const Point2I & )
```

```operator/(const Point2I & )
```

```operator/(S32 )
```

```operator/=(const Point2I & )
```

```operator/=(S32 )
```

```operator==(const Point2I & )
```

```set(S32 in_x, S32 in_y)
```

Set (x,y) position.

```setMax(const Point2I & )
```

Store greater co-ordinates from parameter in this point.

```setMin(const Point2I & )
```

Store lesser co-ordinates from parameter in this point.

```zero()
```

Zero all values.