fromCenter

fun fromCenter(center: Vector3, width: Double, height: Double = width, depth: Double = width): Box(source)

Creates a new Box by specifying the center position with dimensions width, height and depth.