コード例 #1
0
ファイル: KdNode.cpp プロジェクト: latuya23/rt2
bool KdNode::IsCloser(Intersection t1, Intersection t2){
  if(t1.GetT() < t2.GetT() && t2.GetT()>.01 && t1.GetT()>.01)
    return true;
  return false;
}
コード例 #2
0
ファイル: RayTracer.cpp プロジェクト: latuya23/rt2
bool RayTracer::isCloser(Ray *r, Intersection t1, Intersection t2){
  if(t1.GetT() < t2.GetT() && t2.GetT()>.01 && t1.GetT()>.01)
    return true;
  return false;
}