« first day (208 days earlier)      last day (218 days later) » 

12:11 AM
@ConorO'Brien ok so i'm working on rotateoverlap right now
 
trying to figure out how to slice the lines
wait no
 
what is rotateoverlap
 
working on reflectoverlap, brb looking for line number
okay, starting from line 1742
top_left is the top left diagonal with a character on it (basically an axis where x + y = top_left)
And I'm trying to figure out how to calculate where to slice the line
@ConorO'Brien
 
trying to understand
 
12:19 AM
btw sorry for bad explanation + mspaint skills
 
could you give me an example of how this might work?
 
@ConorO'Brien wdym
 
example program using this feature
 
reflect overlap?
well test.py:929 has examples of how it should work
@ConorO'Brien for a challenge submission, here
 
ok so I still have no idea how it works or what the problem is >_>
 
12:26 AM
so in this case it reflects line to above the axis
the problem is if the overlap is large enough (the reflection is shifted down enough) lines will need to be sliced
 
pretend I don't know charcoal.
tell me how this works
 
idk how to explain, just pretend the line top_left is next to is a mirror
Charcoal reflects it across
but there's also a different command that overlaps (moves reflection closer to the axis)
 
so wait you're not working on rotateoverlap anymore
 
@ConorO'Brien no, i got the name wrong
 
12:34 AM
i wasn't working on rotateoverlap at all
 
so from what I understand you have a reflect command and it has the potential to overlap?
 
@ConorO'Brien yes
 
and this is a problem because you haven't defined behaviour for it?
 
no, the behavior is defined
I just have no idea how to calculate the index at which the line should be sliced
 
ok, why should it be sliced? if the line to reflect goes across the mirror?
 
12:38 AM
yeah
 
so how is the line defined?
by endpoints?
 
yeah
although in this case we only need the left endpoint (we only need either the right or the left endpoint for any reflection)
 
how so?
 
we use the nearer endpoint to find where we need to start the write
 
how do you define a reflection with only one endpoint? o_O
 
12:46 AM
@ConorO'Brien ?
reflect the nearest point to the axis then reflect the line starting from that point
 
I don't follow
what is "the axis"
 
the line next to top_left
it's defined as the value of x+y or x-y depending on the direction of the axis (top left to bottom right, or top right to bottom left)
 
oh, so its an endpoint plus a motion
 
yeah
 
ok
so, given a motion and an endpoint, determine (a) if the line intersects the mirror and (b) figure out where to cut it off so that it doesn't go past the mirror?
 
12:52 AM
@ConorO'Brien yes
 
ok cool
and in python
is the motion given as a delta x,y pair or what?
 
not really
it loops for each line so x is given (reflecting y on a diagonal -> x)
y is calculated from the endpoint of the line and the diagonal (e.g. top_left)
btw managed to fix it i think
 
oh ok
>_>
 
but I think I haven't changed the cursor position to factor in overlap yet
 

« first day (208 days earlier)      last day (218 days later) »