Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR TYPESCRIPT

how to get the corners of 2 points on a matrix

say you have 2 points, (x1,y1) and (x2,y2)

to get their corners, criss cross the x's and y's:

corner1 = x1,y2
corner2 = x2,y1

if the original points are on the same x-axis or same y-axis,
the criss cross result will give you back the original points

 
PREVIOUS NEXT
Tagged: #corners #points #matrix
ADD COMMENT
Topic
Name
9+2 =