Comparaciones tradicionales
tpose {=, <>, <, >, <=, >=} tpose → boolean
SELECT tpose '{[Pose(Point(1 1), 0.1)@2001-01-01, Pose(Point(1 1), 0.3)@2001-01-02),
[Pose(Point(1 1), 0.3)@2001-01-02, Pose(Point(1 1), 0.5)@2001-01-03]}' =
tpose '[Pose(Point(1 1), 0.1)@2001-01-01, Pose(Point(1 1), 0.5)@2001-01-03]';
-- true
SELECT tpose '{[Pose(Point(1 1), 0.1)@2001-01-01, Pose(Point(1 1), 0.5)@2001-01-03]}' <>
tpose '[Pose(Point(1 1), 0.1)@2001-01-01, Pose(Point(1 1), 0.5)@2001-01-03]';
-- false
SELECT tpose '[Pose(Point(1 1), 0.1)@2001-01-01, Pose(Point(1 1), 0.5)@2001-01-03]' <
tpose '[Pose(Point(1 1), 0.1)@2001-01-01, Pose(Point(1 1), 0.6)@2001-01-03]';
-- true
Comparaciones alguna vez y siempre
tpose {?=, ?<>, %=, %<>} tpose → boolean
SELECT tpose '[Pose(Point(1 1), 0.2)@2001-01-01, Pose(Point(1 1), 0.4)@2001-01-04)' ?= Pose(Point(1 1), 0.3); -- true SELECT tpose '[Pose(Point(1 1), 0.2)@2001-01-01, Pose(Point(1 1), 0.2)@2001-01-04)' &= Pose(Point(1 1), 0.2); -- true
Superposición alguna vez y siempre
{stbox,tpose} {?&&, %&&} {stbox,tpose} → boolean
tposechain {?&&, %&&} stbox → boolean
stbox {?&&, %&&} tposechain → boolean
Si el valor está en un cuadro espaciotemporal en algún instante, o en todo instante en que está definido, tal como lo establecen ?&& y %&& para las geometrías temporales; el cuadro delimitador de una pose es su posición, de modo que dos poses temporales se superponen en un instante en que sus posiciones son iguales, cualesquiera sean sus orientaciones. Una cadena de poses temporal está en un cuadro cuando alguna de sus articulaciones lo está, tal como la restringe atStbox.
SELECT tpose '[Pose(Point(0 0), 0)@2001-01-01 00:00, Pose(Point(10 10), 0)@2001-01-01 10:00]' ?&& stbox 'STBOX XT(((8,0),(10,2)),[2001-01-01 00:00, 2001-01-01 10:00])'; -- false SELECT tpose '[Pose(Point(0 0), 0)@2001-01-01 00:00, Pose(Point(10 10), 0)@2001-01-01 10:00]' && stbox 'STBOX XT(((8,0),(10,2)),[2001-01-01 00:00, 2001-01-01 10:00])'; -- true SELECT tpose '[Pose(Point(0 0), 0)@2001-01-01 00:00, Pose(Point(10 10), 0)@2001-01-01 10:00]' ?&& stbox 'STBOX XT(((4,4),(6,6)),[2001-01-01 04:00, 2001-01-01 06:00])'; -- true SELECT tpose '[Pose(Point(0 0), 0)@2001-01-01 00:00, Pose(Point(10 10), 0)@2001-01-01 10:00]' %&& stbox 'STBOX X((0,0),(9,9))'; -- false SELECT tpose '[Pose(Point(1 1), 0.2)@2001-01-01, Pose(Point(1 1), 0.4)@2001-01-03]' ?&& tpose '[Pose(Point(1 1), 0.6)@2001-01-01, Pose(Point(1 1), 0.8)@2001-01-03]'; -- true SELECT tposechain 'PoseChain(Pose(Point(0 0), 0), Pose(Point(10 0), 0))@2001-01-01' ?&& stbox 'STBOX X((-1,-1),(1,1))'; -- true
Comparaciones temporales
tpose {#=, #<>} tpose → tbool
SELECT tpose '[Pose(Point(1 1), 0.2)@2001-01-01,
Pose(Point(1 1), 0.4)@2001-01-03)' #= pose 'Pose(Point(1 1), 0.3)';
-- {[f@2001-01-01, t@2001-01-02], (f@2001-01-02, f@2001-01-03)}
SELECT tpose '[Pose(Point(1 1), 0.2)@2001-01-01, Pose(Point(1 1), 0.8)@2001-01-03)' #<>
tpose '[Pose(Point(1 1), 0.3)@2001-01-01, Pose(Point(1 1), 0.7)@2001-01-03)';
-- {[t@2001-01-01, f@2001-01-02], (t@2001-01-02, t@2001-01-03)}
Compara dos cadenas de poses temporales, o una cadena de poses temporal y una cadena de poses
eEqual({pose,posechain,tpose,tposechain},{pose,posechain,tpose,tposechain}) → boolean
SELECT tposechain 'PoseChain(Pose(Point(1 1), 0.5))@2001-01-01' =
tposechain 'PoseChain(Pose(Point(1 1), 0.5))@2001-01-01';
-- t
SELECT eEqual(tposechain '{PoseChain(Pose(Point(1 1), 0.5))@2001-01-01,
PoseChain(Pose(Point(2 2), 0.5))@2001-01-02}',
posechain 'PoseChain(Pose(Point(2 2), 0.5))');
-- t