- Preparing search index...
- The search index is not available
ella-math
Constructors
constructor
- new Geometry(vertices: Vec[], faces: number[][], normals: Vec[], texCoords: Vec[]): Geometry
-
Parameters
-
vertices: Vec[]
-
faces: number[][]
-
normals: Vec[]
-
texCoords: Vec[]
Methods
toTriangles
- toTriangles(): number[]
-
Returns number[]
Static
box
- box(sizeA?: number, sizeB?: number, sizeC?: number): Geometry
-
Parameters
-
sizeA: number = 1.0
-
sizeB: number = 1.0
-
sizeC: number = 1.0
Static
calculateSurfaceNormal
Static
grid
- grid(x: number, y: number, width: number, height: number, rows: number, cols: number): Geometry
-
Parameters
-
x: number
-
y: number
-
width: number
-
height: number
-
rows: number
-
cols: number
Static
sphere
- sphere(r?: number, sides?: number, segments?: number): Geometry
-
Parameters
-
r: number = 0.5
-
sides: number = 36
-
segments: number = 18
converts to triangle array