Hehe
No notes
Syntax:
No syntax
bool SPlane::FindIntersecion(const SRay& _ray, SVec3& _result)
{
SVec3 anyVec = _ray.PointInRay(0); // tu bład
return true;
}
SVec3 SRay::PointInRay(float t)
{
SVec3 point(pos.x + direct.x * t, pos.y + direct.y * t, pos.z + direct.z * t);
return point;
}
Error 3 error C2662: 'SRay::PointInRay' : cannot convert 'this' pointer from 'const SRay' to 'SRay &' d:\programowanie\svn\edwinraytracer\raytracercpp\common\splane.cpp 20