Box
Class Box
Table of Contents
Methods
- __construct() : mixed
- Box constructor.
- getSizes() : mixed
- getVertexes() : array<string|int, array<string|int, mixed>>
- getVMax() : array<string|int, int>
- getVMin() : array<string|int, int>
- move() : mixed
- Set nearest to origin vertex to given point.
- rotate() : mixed
- Rotates box around given axe pi/2 degree
- setVMax() : mixed
- setVMin() : mixed
Methods
__construct()
Box constructor.
public
__construct(array<string|int, int> $sizes) : mixed
Parameters
- $sizes : array<string|int, int>
-
Box sizes array($sizeX, $sizeY, $sizeZ).
getSizes()
public
getSizes() : mixed
getVertexes()
public
getVertexes() : array<string|int, array<string|int, mixed>>
Return values
array<string|int, array<string|int, mixed>>getVMax()
public
getVMax() : array<string|int, int>
Return values
array<string|int, int>getVMin()
public
getVMin() : array<string|int, int>
Return values
array<string|int, int>move()
Set nearest to origin vertex to given point.
public
move(array<string|int, int> $point) : mixed
Parameters
- $point : array<string|int, int>
-
Point coordinates.
rotate()
Rotates box around given axe pi/2 degree
public
rotate(array<string|int, bool> $axes) : mixed
Parameters
- $axes : array<string|int, bool>
-
Axes for rotation
setVMax()
public
setVMax(array<string|int, int> $vertex) : mixed
Parameters
- $vertex : array<string|int, int>
setVMin()
public
setVMin(array<string|int, int> $vertex) : mixed
Parameters
- $vertex : array<string|int, int>