I have been presented with an interesting problem. How can I decide whether a right triangle with given side lengths can be placed (with integer coordinate vertices) on a Cartesian plane so that the legs are not parallel to the x or y axes?
I'm a little stumped as to how the lengths come into play. I figured I would just be considering the slopes of the legs, and whether they were 0 or undefined. Also, try as I might, I can't make a sketch of a triangle that obeys this non-parallel alignment specification.
Any ideas?

If the sides are $a,b,c$ as usual, the condition requires that $a,b$ are themsleves hypothenuses of integer right triangles, i.e. $a^2=x^2+y^2$ and $b^2=u^2+v^2$ for certain nonzero(!) integers $x,y,u,v$. Since the $b$ edge is rotated by $90^\circ$ against the $a$ edge, these two right triangles are similar. That means that they are both integer multiples of a smaller, primitive right triangle. That is: We need a Pythagorean triple $r^2+s^2=t^2$ such that $t$ is a common divisor of $a$ and $b$. Thus you need to check if $\gcd(a,b)$ is an integer multiple of a number that occurs as hypothenuse of a Pythagorean triple. This is equivalent to the existence of a prime $p\equiv 1\pmod 4$ with $p\mid a$ and $p\mid b$.
Example: $a=78$, $b=104$, $c=130$ can be used as desired. Note that $\gcd(a,b)=26$ is a multiple of the prime $13\equiv 1\pmod 4$. We find a solution of $13^2=u^2+v^2$, namely $u=12, v=5$. This allows us to use $C=(0,0)$, $B=(6u,6v)=(72,30)$, $A=(8v,-8u)=(40,-96)$.