I have joined a new company and I saw this on their plane definition
// Coordinates of the minimum point in the box
Vector3<T> m_root;
// Coordinates of the maximum point in the box
Vector3<T> m_normal;
// Coordinates of the u direction
Vector3<T> m_udir;
// Coordinates of the v direction
Vector3<T> m_vdir;
I am not a math guro and I just know the high level representation of a plane, a point in the plane and a normal, in the above this can be the m_root and the m_normal. But I dont understand what the U and V direction is for.
In the code, it is initialized as the direction that points in the X and Z direction (normalized) while the normal is initialized as pointing to positive Y axis. Is there any mathematical explanation what these vectors are, does this only points to the X/Z direction, or always perpendicular to the normal vector.
I am not sure why they have these as for me normal and a point can already represent the plane.
Any math people can help?