//
// Generated by dtk
// Translation Unit: c_m3d_g_pla.cpp
//

#include "SSystem/SComponent/c_m3d_g_pla.h"
#include "SSystem/SComponent/c_m3d.h"

/* 80252304-80252324       .text CalcAngleXz__8cM3dGPlaCFPsPs */
void cM3dGPla::CalcAngleXz(short* pAngleX, short* pAngleY) const {
    cM3d_CalcVecAngle(mNormal, pAngleX, pAngleY);
}

/* 80252324-8025238C       .text SetupNP0__8cM3dGPlaFRC3VecRC3Vec */
void cM3dGPla::SetupNP0(const Vec& pNormal, const Vec& pPoint) {
    mNormal = pNormal;
    VECNormalize(&mNormal, &mNormal);
    mD = -VECDotProduct(&mNormal, &pPoint);
}
