There must have been multiple Star Trek games. This is the one I remember playing. Written by Mike Mayfield https://en.wikipedia.org/wiki/Star_Trek_(1971_video_game)
Boy I played that for a long time. Glad I didn't get billed for the paper I used. So much matrix math. 8-)