- Модуль: sale
- Путь к файлу: ~/bitrix/modules/sale/lib/delivery/packing/box.php
- Класс: BitrixSaleDeliveryPackingBox
- Вызов: Box::rotate
public function rotate(array $axes) // array (0,1,0)
{
if($axes[0])
{
$this->vMin = array($this->vMin[0], $this->vMin[2], $this->vMin[1]);
$this->vMax = array($this->vMax[0], $this->vMax[2], $this->vMax[1]);
}
if($axes[1])
{
$this->vMin = array($this->vMin[2], $this->vMin[1], $this->vMin[0]);
$this->vMax = array($this->vMax[2], $this->vMax[1], $this->vMax[0]);
}
if($axes[2])
{
$this->vMin = array($this->vMin[2], $this->vMin[0], $this->vMin[1]);
$this->vMax = array($this->vMax[2], $this->vMax[0], $this->vMax[1]);
}
}