NAME
ttypt/point.h - Point arithmetic and utility functions for spatial operations.
SYNOPSIS
#include <stdint.h>
#include <stdio.h>
Functions
Add two points component-wise.
2D vector addition. See point_add_1() for the family docs.
3D vector addition. See point_add_1() for the family docs.
4D vector addition. See point_add_1() for the family docs.
Subtract two points component-wise.
2D vector subtraction. See point_sub_1() for the family docs.
3D vector subtraction. See point_sub_1() for the family docs.
4D vector subtraction. See point_sub_1() for the family docs.
Compute component-wise minimum of two points.
2D component-wise minimum. See point_min_1() for the family docs.
3D component-wise minimum. See point_min_1() for the family docs.
4D component-wise minimum. See point_min_1() for the family docs.
Compute component-wise maximum of two points.
2D component-wise maximum. See point_max_1() for the family docs.
3D component-wise maximum. See point_max_1() for the family docs.
4D component-wise maximum. See point_max_1() for the family docs.
Copy a point (component-wise shallow copy).
2D point copy (exact 4-byte move). See point_copy_1() for docs.
3D point copy. See point_copy_1() for the family docs.
4D point copy (exact 8-byte move). See point_copy_1() for docs.
Compute the volume (product of all components) of a point.
2D area. See point_vol_1() for the family docs.
3D volume. See point_vol_1() for the family docs.
4D volume. See point_vol_1() for the family docs.
Set all components of a point to the same value.
2D broadcast set. See point_set_1() for the family docs.
3D broadcast set. See point_set_1() for the family docs.
4D broadcast set. See point_set_1() for the family docs.
Print a point to stderr for debugging.
Print a 2D point. See point_debug_1() for the family docs.
Print a 3D point. See point_debug_1() for the family docs.
Print a 4D point. See point_debug_1() for the family docs.
Compute a linear index for a point within a bounding box.
2D row-major index. See point_idx_1() for the family docs.
3D row-major index. See point_idx_1() for the family docs.
4D row-major index. See point_idx_1() for the family docs.
2D x 32-bit vector addition. See point_add_1() for the family docs.
2D x 32-bit vector subtraction. See point_sub_1() for the family docs.
2D x 32-bit component-wise minimum. See point_min_1() for the family docs.
2D x 32-bit component-wise maximum. See point_max_1() for the family docs.
2D x 32-bit point copy (exact 8-byte move). See point_copy_1() for the family docs.
2D x 32-bit area. The product of two lanes (each at most 2^32-1 wide) always fits in uint64_t.
2D x 32-bit broadcast set. See point_set_1() for the family docs.
Print a 2D x 32-bit point. See point_debug_1() for the family docs.
2D x 32-bit row-major index. See point_idx_1() for the family docs.
Detailed Description
Point arithmetic and utility functions for spatial operations.
Provides helper functions for manipulating multi-dimensional points represented as int16_t arrays. These are building blocks for spatial operations in libislet.
All functions are per-dimension specializations (point_copy_1..4, etc.). There is no runtime dimension argument: pick the function matching the dimension count, so the compiler sees fully unrolled bodies.
The 2D x 32-bit config (int32_t lanes, morton_set_2_32 / islet_*_2_32) has its own same-shaped family (point_add_2_32, etc.).
Prefer the config objects (pointcfg.h: Point1_2..Point4_2, Point2_4) in application code; these inlines remain the tight-loop fast path.
Note
No bounds checking is performed for efficiency. Caller must ensure arrays have sufficient space for the dimension count used.
See also
Islet core API
Morton code helpers
Author
Generated automatically by Doxygen for islet from the source code.