public unsafe bool Occluded(Point3D from, Vector direction, float near = 0, float far = float.PositiveInfinity, float time = 0) { var p = RTC.RayInterop.Packet1; p->orgX = from.X; p->orgY = from.Y; p->orgZ = from.Z; p->dirX = direction.X; p->dirY = direction.Y; p->dirZ = direction.Z; p->geomID = RTC.InvalidGeometryID; p->primID = RTC.InvalidGeometryID; p->instID = RTC.InvalidGeometryID; p->time = time; p->tnear = near; p->tfar = far; RTC.Occluded1(scenePtr, p); return(p->geomID == 0); }