Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Box ¶
type Box struct {
Width, Height, Depth float32
NumWidthSegments, NumHeightSegments, NumDepthSegments int
}
Box is a rectangular cuboid centered around (0, 0, 0) with sizes Width, Height and Depth on the X, Y and Z axis respectively. Some control over the tesselation of each face is given through the number of segments on each direction.
func NewBox ¶
func NewBox(width, height, depth float32, options ...BoxOptions) *Box
NewBox creates a new box.
type BoxOptions ¶
type BoxOptions struct {
NumWidthSegments, NumHeightSegments, NumDepthSegments int
}
BoxOptions contains optional parameters for the Box constructors.
Click to show internal directories.
Click to hide internal directories.