.TH "ttypt/point.h" 3 "islet" \" -*- nroff -*- .ad l .nh .SH NAME ttypt/point.h \- Point arithmetic and utility functions for spatial operations\&. .SH SYNOPSIS .br .PP \fR#include \fP .br \fR#include \fP .br .SS "Functions" .in +1c .ti -1c .RI "static void \fBpoint_add_1\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "Add two points component-wise\&. " .ti -1c .RI "static void \fBpoint_add_2\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "2D vector addition\&. See \fBpoint_add_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_add_3\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "3D vector addition\&. See \fBpoint_add_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_add_4\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "4D vector addition\&. See \fBpoint_add_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_sub_1\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "Subtract two points component-wise\&. " .ti -1c .RI "static void \fBpoint_sub_2\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "2D vector subtraction\&. See \fBpoint_sub_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_sub_3\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "3D vector subtraction\&. See \fBpoint_sub_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_sub_4\fP (int16_t *tar, int16_t *orig, int16_t *tr)" .br .RI "4D vector subtraction\&. See \fBpoint_sub_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_min_1\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "Compute component-wise minimum of two points\&. " .ti -1c .RI "static void \fBpoint_min_2\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "2D component-wise minimum\&. See \fBpoint_min_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_min_3\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "3D component-wise minimum\&. See \fBpoint_min_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_min_4\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "4D component-wise minimum\&. See \fBpoint_min_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_max_1\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "Compute component-wise maximum of two points\&. " .ti -1c .RI "static void \fBpoint_max_2\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "2D component-wise maximum\&. See \fBpoint_max_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_max_3\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "3D component-wise maximum\&. See \fBpoint_max_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_max_4\fP (int16_t *tar, int16_t *a, int16_t *b)" .br .RI "4D component-wise maximum\&. See \fBpoint_max_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_copy_1\fP (int16_t *tar, int16_t *orig)" .br .RI "Copy a point (component-wise shallow copy)\&. " .ti -1c .RI "static void \fBpoint_copy_2\fP (int16_t *tar, int16_t *orig)" .br .RI "2D point copy (exact 4-byte move)\&. See \fBpoint_copy_1()\fP for docs\&. " .ti -1c .RI "static void \fBpoint_copy_3\fP (int16_t *tar, int16_t *orig)" .br .RI "3D point copy\&. See \fBpoint_copy_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_copy_4\fP (int16_t *tar, int16_t *orig)" .br .RI "4D point copy (exact 8-byte move)\&. See \fBpoint_copy_1()\fP for docs\&. " .ti -1c .RI "static int32_t \fBpoint_vol_1\fP (int16_t *p)" .br .RI "Compute the volume (product of all components) of a point\&. " .ti -1c .RI "static int32_t \fBpoint_vol_2\fP (int16_t *p)" .br .RI "2D area\&. See \fBpoint_vol_1()\fP for the family docs\&. " .ti -1c .RI "static int32_t \fBpoint_vol_3\fP (int16_t *p)" .br .RI "3D volume\&. See \fBpoint_vol_1()\fP for the family docs\&. " .ti -1c .RI "static int32_t \fBpoint_vol_4\fP (int16_t *p)" .br .RI "4D volume\&. See \fBpoint_vol_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_set_1\fP (int16_t *tar, int16_t value)" .br .RI "Set all components of a point to the same value\&. " .ti -1c .RI "static void \fBpoint_set_2\fP (int16_t *tar, int16_t value)" .br .RI "2D broadcast set\&. See \fBpoint_set_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_set_3\fP (int16_t *tar, int16_t value)" .br .RI "3D broadcast set\&. See \fBpoint_set_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_set_4\fP (int16_t *tar, int16_t value)" .br .RI "4D broadcast set\&. See \fBpoint_set_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_debug_1\fP (char *label, int16_t *p)" .br .RI "Print a point to stderr for debugging\&. " .ti -1c .RI "static void \fBpoint_debug_2\fP (char *label, int16_t *p)" .br .RI "Print a 2D point\&. See \fBpoint_debug_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_debug_3\fP (char *label, int16_t *p)" .br .RI "Print a 3D point\&. See \fBpoint_debug_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_debug_4\fP (char *label, int16_t *p)" .br .RI "Print a 4D point\&. See \fBpoint_debug_1()\fP for the family docs\&. " .ti -1c .RI "static uint64_t \fBpoint_idx_1\fP (int16_t *p, int16_t *s, int16_t *e)" .br .RI "Compute a linear index for a point within a bounding box\&. " .ti -1c .RI "static uint64_t \fBpoint_idx_2\fP (int16_t *p, int16_t *s, int16_t *e)" .br .RI "2D row-major index\&. See \fBpoint_idx_1()\fP for the family docs\&. " .ti -1c .RI "static uint64_t \fBpoint_idx_3\fP (int16_t *p, int16_t *s, int16_t *e)" .br .RI "3D row-major index\&. See \fBpoint_idx_1()\fP for the family docs\&. " .ti -1c .RI "static uint64_t \fBpoint_idx_4\fP (int16_t *p, int16_t *s, int16_t *e)" .br .RI "4D row-major index\&. See \fBpoint_idx_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_add_2_32\fP (int32_t *tar, int32_t *orig, int32_t *tr)" .br .RI "2D x 32-bit vector addition\&. See \fBpoint_add_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_sub_2_32\fP (int32_t *tar, int32_t *orig, int32_t *tr)" .br .RI "2D x 32-bit vector subtraction\&. See \fBpoint_sub_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_min_2_32\fP (int32_t *tar, int32_t *a, int32_t *b)" .br .RI "2D x 32-bit component-wise minimum\&. See \fBpoint_min_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_max_2_32\fP (int32_t *tar, int32_t *a, int32_t *b)" .br .RI "2D x 32-bit component-wise maximum\&. See \fBpoint_max_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_copy_2_32\fP (int32_t *tar, int32_t *orig)" .br .RI "2D x 32-bit point copy (exact 8-byte move)\&. See \fBpoint_copy_1()\fP for the family docs\&. " .ti -1c .RI "static uint64_t \fBpoint_vol_2_32\fP (int32_t *p)" .br .RI "2D x 32-bit area\&. The product of two lanes (each at most 2^32-1 wide) always fits in uint64_t\&. " .ti -1c .RI "static void \fBpoint_set_2_32\fP (int32_t *tar, int32_t value)" .br .RI "2D x 32-bit broadcast set\&. See \fBpoint_set_1()\fP for the family docs\&. " .ti -1c .RI "static void \fBpoint_debug_2_32\fP (char *label, int32_t *p)" .br .RI "Print a 2D x 32-bit point\&. See \fBpoint_debug_1()\fP for the family docs\&. " .ti -1c .RI "static uint64_t \fBpoint_idx_2_32\fP (int32_t *p, int32_t *s, int32_t *e)" .br .RI "2D x 32-bit row-major index\&. See \fBpoint_idx_1()\fP for the family docs\&. " .in -1c .SH "Detailed Description" .PP 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\&. .PP 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\&. .PP 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\&.)\&. .PP Prefer the config objects (\fBpointcfg\&.h\fP: Point1_2\&.\&.Point4_2, Point2_4) in application code; these inlines remain the tight-loop fast path\&. .PP \fBNote\fP .RS 4 No bounds checking is performed for efficiency\&. Caller must ensure arrays have sufficient space for the dimension count used\&. .RE .PP \fBSee also\fP .RS 4 \fBIslet core API\fP .PP \fBMorton code helpers\fP .RE .PP .SH "Author" .PP Generated automatically by Doxygen for islet from the source code\&.