Banner Image

Module Shapes.CUBE

Author: nielsvaes/coconutcockpit


Global(s)

Global CUBE

Type(s)

Fields and Methods inherited from CUBE Description

CUBE.ClassName

Name of the class.

CUBE:ContainsPoint(point, cube_points)

CUBE.Coords

coordinates of the line

CUBE:GetCenter()

CUBE:New(p1, p2, p3, p4, p5, p6, p7, p8)

Points need to be added in the following order: - p1 -> p4 make up the front face of the cube - p5 -> p8 make up the back face of the cube - p1 connects to p5 - p2 connects to p6 - p3 connects to p7 - p4 connects to p8 - - 8-----------7 - /| /| - / | / | - 4--+--------3 | - | | | | - | | | | - | | | | - | 5--------+--6 - | / | / - |/ |/ - 1-----------2 -

CUBE.Points

points of the line

LINE class.

Field(s)

#string CUBE.ClassName

Name of the class.

#number CUBE.Coords

coordinates of the line

#number CUBE.Points

points of the line

Function(s)

Defined in:

CUBE

Parameters:

point

cube_points

Defined in:

CUBE

Points need to be added in the following order: - p1 -> p4 make up the front face of the cube - p5 -> p8 make up the back face of the cube - p1 connects to p5 - p2 connects to p6 - p3 connects to p7 - p4 connects to p8 - - 8-----------7 - /| /| - / | / | - 4--+--------3 | - | | | | - | | | | - | | | | - | 5--------+--6 - | / | / - |/ |/ - 1-----------2 -

Defined in:

CUBE

Parameters:

p1

p2

p3

p4

p5

p6

p7

p8