Search Results

Found 1 results for "e6e89f2b7570f785fdaa11cdad6daf47" across all boards searching md5.

Anonymous /g/105621602#105638632
6/19/2025, 9:36:10 AM
>>105621602
Bros what data structure would be good for this problem:

1. I have to define points (Point object) in 3D space, each point has an ID string and float coordinates x, y, z.
2. I have to define members (Member object) in 3D space which are line segments referencing 'Point' objects. A 'Member' object also has ID string, 'start' as the starting Point object and 'end' as the end Point object.
3. I have to check if newly instantiated Member objects are unique i.e. no line-segment overlaps. Suppose I have Members 'm1' and 'm2':

// In javascript bullshit pseudo-code cuz I'm a retarded webshitter
// points
const p1 = {id: "p1", x:0, y:0, z:0}
const p2 = {id: "p2", x:1, y:0, z:0}

// members
const m1 = {id: ''m1", start: p1, end: p2};
const m2 = {id: "m2", start: p2, end: p1}; // Illegal, not unique

Whats the best way to do this considering deletion of points? Maps are the obvious answer but IDK where to start.

I'm trynna "OOOOPTIMIZE" my webshit structural analysis web app (webmrel).