SimReal UiA Logo


Parameterization - 3D - Line


We have a straight line between the two points P0 = (x0,y0,z0) and P1 = (x1,y1,z1).
The endpoints P0 and P1 are marked by small red shperes.

This line is parameterized by:
x = x0 + (x1 - x0)
y = y0 + (y1 - y0)
z = z0 + (z1 - z0)        t ϵ [0,1]
A vector p from the origin to a point P = (x,y,z) on the line is the given by:
p = p0 + t·(p1 - p0)

The default value of the parameter t is equal 0.2.

Use the slider to change the value of the parameter t and thereby move the point P (green sphere) on the line.

By default the vector (green color) from the origin to the point P is shown, while the vectors (red color) from origin to the points P0 and P1 are hided.


Rotate the camera by dragging with the right mouse button, or hold down the Ctrl key and drag.
To zoom, drag with the left+right mouse buttons, or hold down the Alt/Option key and drag, or use the mouse wheel.
Touch screen: pinch/extend to zoom, swipe or two-finger rotate.

MatRIC Logo