JXG.GeometryElement3D

Class

This is the basic class for 3D geometry elements like Point3D and Line3D.

Attributes

Own

none

Inherited

Members

Own

(private) element2D : Array

Description

Link to the 2D element(s) used to visualize the 3D element in a view. In case, there are several 2D elements, it is an array.

Type
Array
Example
p.element2D;
Source
3d/element3d.js, line 65

(private) is3D : Boolean

Description

If this property exists (and is true) the element is a 3D element.

Type
Boolean
Source
3d/element3d.js, line 73

(private) view : JXG.View3D

Description

Pointer to the view3D in which the element is constructed

Type
JXG.View3D
Source
3d/element3d.js, line 51

Inherited

Methods

Own

(private, static) projectCoords(p, params) → {Array}

Project a 3D point to this element and update point.position. This function computes the preimage (u,v) of a 3D position \((1, X, Y, Z)\)

Parameters

Name Type Description
p Array

3D position of the point (array of length 4, homogeneous coordinates)

params Array

Changed in place to the new parameters of the point in terms of the elements functions X, Y, Z. For example for a surface, params will contain values (u,v) such that the new 3D position is p = [X(u, v), Z(u, v), Z(u, v)].

Returns

3D coordinates of the projected point with homogeneous coordinates of the form [1, x, y, z].

Type
Array

Details

Source
3d/element3d.js, line 262

(static) projectScreenCoords(pScr, params)

Computes the screen coordinates (e.g. of of the mouse pointer) to a position on a 3D object.

Parameters

Name Type Description
pScr Array

2D screen coordinates (in pixel)

params Array

See JXG.Math.Geometry.projectScreenCoordsToParametric

Returns

Array of length 4 containing the coordinates of the nearest point on the curve or surface.

Details

Source
3d/element3d.js, line 274

(private, static) setPosition2D(t)

Set position of the 2D element. This is a callback function, executed in JXG.GeometryElement#setPosition.

Parameters

Name Type Description
t Transformation

transformation

Details

See
Source
3d/element3d.js, line 247

Inherited

Events

Own

none

Inherited

Parameters

Name Type Description
elType string

Details

Source
3d/element3d.js, line 43

Extends