Create a box geometry
width of the box (default: 1)
height of the box (default: 1)
depth of the box (default: 1)
number of width segments (default: 1)
number of height segments (default: 1)
number of depth segments (default: 1)
a buffer geometry
Create an indexed buffer geometry from a non-indexed one (might be expensive)
create a plane grid mesh
width of the plane
height of the plane
number of rows
number of columns
Create sphere geometry
radius
number of sides (around the sphere)
number of segments (from top to bottom)
array of vertex indices containing 3 or 4 indices each for triangles/quads
the vertices
converts to an array of numbers
creates a perspective matrix that produces a perspective projection
coordinates for the vertical left clipping pane
coordinates for the vertical right clipping pane
coordinates for the horizontal bottom clipping pane
coodinates for the top horizontal clipping pane
Specify the distances to the near depth clipping plane. Must be positive.
Specify the distances to the far depth clipping planes. Must be positive.
4x4 perspective projection matrix
creates a transformation that produces a parallel projection
coordinate for the left vertical clipping planes.
coordinate for the right vertical clipping planes.
coordinate for the bottom horizontal clippling pane.
coordinate for the top horizontal clipping pane
Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.
Specify the distances to the nearer and farther depth clipping planes. These values are negative if the plane is to be behind the viewer.
4x4 orthographic transformation matrix
creates a perspective projection matrix
Specifies the field of view angle, in degrees, in the y direction.
Specifies the aspect ratio that determines the field of view in the x direction. The aspect ratio is the ratio of x (width) to y (height).
Specifies the distance from the viewer to the near clipping plane (always positive).
Specifies the distance from the viewer to the far clipping plane (always positive).
4x4 perspective projection matrix
Generated using TypeDoc
Calculate the surface normal of a triangle