static double adjacentLength ( Vector2d hypotenuse , Vector2d adjacent , double oppositeLength ) { return Math . tan ( hypotenuse . angle ( adjacent ) ) * oppositeLength ; }
Given vectors for the hypotenuse and adjacent side of a right angled triangle and the length of the opposite side determine how long the adjacent side size .