1C-Bitrix 25.700.0
Загрузка...
Поиск...
Не найдено
Класс Container

Открытые члены

 addBox (array $boxDims)
 addBoxToVertex (array $boxDims, $vertexIdx)
 insertBox (Box $box, $vertexId=0)
 getBoxes ()
 getAvailableVertexes ()
 getFilledDimensions ()
 getFilledVolume ()

Открытые статические члены

static distanceCompare (array $p1, array $p2)
static calculateDistance (array $p1, array $p2)

Защищенные члены

 refreshVertexesAfterBoxAdd (Box $box)
 isVertexSuitable (Box $newBox)

Защищенные статические члены

static isBoxesIntersects (Box $box1, Box $box2)
static isEdgesIntersects ($min1, $max1, $min2, $max2)

Защищенные данные

 $boxes = array()
 $availableVertexes

Подробное описание

См. определение в файле container.php строка 11

Методы

◆ addBox()

addBox ( array $boxDims)
Аргументы
int[]$boxDimsPoint move box to
Возвращает
bool

См. определение в файле container.php строка 23

◆ addBoxToVertex()

addBoxToVertex ( array $boxDims,
$vertexIdx )

См. определение в файле container.php строка 43

◆ calculateDistance()

calculateDistance ( array $p1,
array $p2 )
static

Calculate distance between two points

Аргументы
array$p1
array$p2
Возвращает
float

См. определение в файле container.php строка 225

◆ distanceCompare()

distanceCompare ( array $p1,
array $p2 )
static
Аргументы
int[]$p1
int[]$p2
Возвращает
int

См. определение в файле container.php строка 207

◆ getAvailableVertexes()

getAvailableVertexes ( )

См. определение в файле container.php строка 108

◆ getBoxes()

getBoxes ( )
Возвращает
Box[]

См. определение в файле container.php строка 98

◆ getFilledDimensions()

getFilledDimensions ( )
Возвращает
array Dimensions of space filled by boxes

См. определение в файле container.php строка 168

◆ getFilledVolume()

getFilledVolume ( )
Возвращает
int Volume of space filled by boxes

См. определение в файле container.php строка 195

◆ insertBox()

insertBox ( Box $box,
$vertexId = 0 )

См. определение в файле container.php строка 70

◆ isBoxesIntersects()

isBoxesIntersects ( Box $box1,
Box $box2 )
staticprotected

Checks if boxes intersect

Аргументы
Box$box1
Box$box2
Возвращает
bool

См. определение в файле container.php строка 140

◆ isEdgesIntersects()

isEdgesIntersects ( $min1,
$max1,
$min2,
$max2 )
staticprotected

Are edges intersect

Аргументы
int$min1
int$max1
int$min2
int$max2
Возвращает
bool

См. определение в файле container.php строка 160

◆ isVertexSuitable()

isVertexSuitable ( Box $newBox)
protected

Check if box can be added

Аргументы
Box$newBox
Возвращает
bool

См. определение в файле container.php строка 118

◆ refreshVertexesAfterBoxAdd()

refreshVertexesAfterBoxAdd ( Box $box)
protected

См. определение в файле container.php строка 85

Поля

◆ $availableVertexes

$availableVertexes
protected
Инициализатор
array (0,0,0)
)
</td ></tr ></table ></td ></tr >< tr >< td class="bx-popup-label bx-width30"><?=GetMessage("PAGE_NEW_TAGS")?> array( $site)
Определения file_new.php:804

См. определение в файле container.php строка 15

◆ $boxes

$boxes = array()
protected

См. определение в файле container.php строка 14


Объявления и описания членов класса находятся в файле: