Skip to content

Instantly share code, notes, and snippets.

@collinticer
Created July 11, 2020 16:47
Show Gist options
  • Save collinticer/44a3063fde3f008b9893b960cb818d40 to your computer and use it in GitHub Desktop.
Save collinticer/44a3063fde3f008b9893b960cb818d40 to your computer and use it in GitHub Desktop.
var x1OfLine = lengthdir_x( distanceAway , currentMouseDirection );
var x2OfLine = lengthdir_x( distanceAway + pointerLength, currentMouseDirection );
var y1OfLine = lengthdir_y( distanceAway , currentMouseDirection );
var y2OfLine = lengthdir_y( distanceAway + pointerLength, currentMouseDirection );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment