Skip to content
DuckDB community extension

se3

Provides SE(3) rigid transformations, quaternion operations, and 3D/4D vector arithmetic as DuckDB scalar functions.

01 / SETUP

Install and load

Run these commands in a Haybarn SQL session. The extension is available from the community repository.

Haybarn 2.0.0 · SQL
INSTALL se3 FROM community;
LOAD se3 FROM community;

Try it in a temporary SQL session with se3 already loaded. Queries run in this tab; examples using files or services need their own setup.

Using upstream DuckDB? Follow the maintainer’s installation instructions.

02 / QUERY

Usage example

SQL
SELECT se3_apply(
    se3_from_axis_angle(
        struct_pack(x:=1.0, y:=0.0, z:=0.0), -- translation
        struct_pack(x:=0.0, y:=0.0, z:=1.0), -- rotation axis (Z)
        pi()/2.0                             -- 90 degrees
    ),
    struct_pack(x:=1.0, y:=0.0, z:=0.0)      -- point
);                                           -- {x: 0.0, y: 2.0, z: 0.0}

Provided by jokasimr. Not yet verified on Haybarn 2.0.0.

Sample data & setup

About this extension

This extension provides SE(3) rigid transformations, quaternion operations, and 3D/4D vector arithmetic, implemented as DuckDB scalar functions.

For types, functions, and composition semantics, see the API reference.

Project overview from the community descriptor.

Documentation and resources

Project and build details
Repository
jokasimr/se3
License
MIT
Maintainers
jokasimr
Written in
C++
Build source
9b72c7eb6ef9
Build definition
Community descriptor