Module morton

Source
Expand description

Routines for Morton encoding and decoding.

Functionsยง

anchor_to_coordinates
Given an anchor, return the corresponding x,y,z coordinates.
compute_interaction_list
Compute interaction list.
compute_near_field
Compute near field.
decode_key
Decode a given key.
encode_anchor
Encode an anchor.
encode_point
Encode a point.
encode_points
Encode many points.
find_children
Return all children of a given key.
find_key_in_direction
Find key in a given direction.
find_level
Return the level associated with a key.
find_parent
Return the key of the parent node.
find_siblings
Return all siblings of a key.
point_to_anchor
Map a point to the integer coordinates of its enclosing box.
serialize_box_from_key
Serialized representation of a box associated with a key.