JavaScript must be enabled in order for you to use JSXGraph and JSXGraph reference. However, it seems JavaScript is either disabled or not supported by your browser.

Class Index | File Index

Elements
Classes

Namespace JXG.Math.Tiling


      ↳ JXG.Math.Tiling



Defined in: tiling.js.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
The JXG.Math.Tiling namespace.
Field Summary
Field Attributes Field Name and Description
<private> <static>  
JXG.Math.Tiling.mapMeshTo3D
This function creates an array of dynamic 3-dimensional points based on an array of pairs of two coordinates.
<static>  
JXG.Math.Tiling.rectangulation
A function, which is used to rectangulate a given rectangle.
<static>  
JXG.Math.Tiling.triangulation
A function which is used to triangulate a given rectangle.
Namespace Detail
JXG.Math.Tiling
The JXG.Math.Tiling namespace.
Field Detail
<private> <static> {Array} JXG.Math.Tiling.mapMeshTo3D
This function creates an array of dynamic 3-dimensional points based on an array of pairs of two coordinates. It uses a mathematical function to assign a third coordinate (the z-coordinate) to each pair of two coordinates. The 3-dimensional points are not stored directly. Instead the array stores JavaScript functions that utilize the mentioned mathematical function to return an array of three coordinates. This allows the recognition and proper visualization of changes to the underlying mathematical function.

<static> {Array} JXG.Math.Tiling.rectangulation
A function, which is used to rectangulate a given rectangle. The rectangle is rectangulated in rows. The number of rectangles the original rectangle is divided into depends on the parameters stepsU and stepsV. The rectangle is represented by the 4 points (arrays of coordinates) given as parameters.
var i,
    surface = JXG.Math.Toiling.rectangulation([0,0], [0,5], [2,5], [2,0], 6, 6);
for (i = 0; i < surface[1].length; i++) {
    board.create('polygon',[
        surface[0][surface[1][i][0]],
        surface[0][surface[1][i][1]],
        surface[0][surface[1][i][2]],
        surface[0][surface[1][i][3]]
    ]);
}


					
					

						
						
						
						

					
<static> JXG.Math.Tiling.triangulation
A function which is used to triangulate a given rectangle. The rectangle is represented by four points p1, p2, p3, p4 (arrays of coordinates) given as parameters. It is triangulated in rows. The number and shape of the triangles depends on parameters stepsU and stepsV. If the optional parameter stepsV is not given or is equal to 0, the rectangle is partitioned into equilateral triangles. Otherwise, the shape of the triangles depends on the ratio of stepsU / stepsV.
var i,
    surface = JXG.Math.Tiling.triangulation([0,0], [0,4], [2,4], [2,0], 6);
for (i = 0; i < surface[1].length; i++) {
    board.create('polygon',[
        surface[0][surface[1][i][0]],
        surface[0][surface[1][i][1]],
        surface[0][surface[1][i][2]]
    ]);
}



					
					
var i,
    surface = JXG.Math.Tiling.triangulation([0,0], [0,4], [2,4], [2,0], 7, 3);
for (i = 0; i < surface[1].length; i++) {
    board.create('polygon',[
        surface[0][surface[1][i][0]],
        surface[0][surface[1][i][1]],
        surface[0][surface[1][i][2]]
    ]);
}



					
					

						
						
						
						

					
				
			


			


			

			
Documentation generated by JsDoc Toolkit 2.4.0 on Tue May 05 2026 10:26:31 GMT+0200 (Mitteleuropäische Sommerzeit)