fabien van mook

all packages "fvm-*"

package "fvm-geometry"

function file "perpoffset.m"

Function P = perpoffset(p,u,v,o)
         P = perpoffset(p,pp,o)

returns points P after offsetting the input points p, 
with a distance o, perpendicularily to the plane defined
by vectors u and v. Instead of input of u and
v directly, points pp may be given, from which is 
calculated:
  u = pp(2,:)   - pp(1,:),
  v = pp(end,:) - pp(1,:).

Input variable p has 3 columns and a row for each point;
the same applies to output variable P.
Input variables u and v are arrays of 1 row and 3 columns.
Input variable pp has at least 2 rows, and has 3 columns.

The validity of the input is not checked!


(c) 2026 fabien van mook

2026.08.20 release of this file within package "fvm-geometry" under GNU GPLv3+