Imagine\Image\Point\Center | Imagine API

- Classes
- Namespaces
- Interfaces
- Index

Imagine API
Class

# Imagine\Image\Point\Center

class Center implements PointInterface

Point center

## Methods

| __construct(BoxInterface $box) Constructs coordinate with size instance, it needs to be relative to |
integer | getX() Gets points x coordinate |
integer | getY() Gets points y coordinate |
Boolean | in(BoxInterface $box) Checks if current coordinate is inside a given bo |
ImageInterface | move(integer $amount) Returns another point, moved by a given amount from current coordinates |
string | __toString() Gets a string representation for the current point |

## Details

###
at line 33
`public __construct(BoxInterface $box)`

Constructs coordinate with size instance, it needs to be relative to

#### Parameters

BoxInterface | $box |

###
at line 41
`public integer getX()`

Gets points x coordinate

#### Return Value

integer |

###
at line 49
`public integer getY()`

Gets points y coordinate

#### Return Value

integer |

###
at line 57
`public Boolean in(BoxInterface $box)`

Checks if current coordinate is inside a given bo

#### Parameters

BoxInterface | $box |

#### Return Value

Boolean |

###
at line 65
`public ImageInterface move(integer $amount)`

Returns another point, moved by a given amount from current coordinates

#### Parameters

integer | $amount |

#### Return Value

ImageInterface |

###
at line 73
`public string __toString()`

Gets a string representation for the current point

#### Return Value

string |