Pātuhitia tēnei: Generalized associated Legendre functions and their applications