From 2dbedd8c1e78e4796b34e84cc59d03697d1f415b Mon Sep 17 00:00:00 2001 From: pand5461 Date: Mon, 13 Sep 2021 13:04:22 +0300 Subject: [PATCH] Adds the missing parameter to `orbdir` --- liborbital/orbdir.ks | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/liborbital/orbdir.ks b/liborbital/orbdir.ks index c111f89..7ad09a2 100644 --- a/liborbital/orbdir.ks +++ b/liborbital/orbdir.ks @@ -1,6 +1,10 @@ function orbdir { -//returns direction with vector=AN vector, up=normal - local normvec to vcrs(body:position-orbit:position,velocity:orbit). - local anvec to vcrs(normvec,V(0,1,0)). - return lookdirup(anvec,normvec). +// Returns direction with vector = AN vector, up = normal +// Parameters: +// * refNRM - normal to the orbit wrt which the the AN is taken. +// Default: V(0,1,0) - equatorial prograde orbit + parameter refNRM is V(0,1,0). + local normvec is vcrs(body:position-orbit:position,velocity:orbit). + local anvec is vcrs(normvec, refNRM). + return lookdirup(anvec, normvec). }