PLANEPOSITION Compute position of a point on a plane.
PT2 = planePosition(POINT, PLANE)
POINT has format [X Y Z], and plane has format
[X0 Y0 Z0 DX1 DY1 DZ1 DX2 DY2 DZ2], where :
- (X0, Y0, Z0) is a point belonging to the plane
- (DX1, DY1, DZ1) is a first direction vector
- (DX2, DY2, DZ2) is a second direction vector
Result PT2 has the form [XP YP], with [XP YP] coordinate of the point
in the coordinate system of the plane.
CAUTION:
WORKS ONLY FOR PLANES WITH ORTHOGONAL DIRECTION VECTORS
Example
plane = [10 20 30 1 0 0 0 1 0];
point = [13 24 35];
pos = planePosition(point, plane)
pos =
3 4
See also:
geom3d, planes3d, points3d, planePoint
Package: matgeom