`#include <HAPI/IntersectionInfo.h>`

## Public Member Functions | |

IntersectionInfo (const Vec3 &_point=Vec3(), const Vec3 &_normal=Vec3(), const Vec3 &_tex_coord=Vec3(), FaceType intersected_face=FRONT, int _id=-1) | |

Constructor. | |

## Public Attributes | |

Vec3 | point |

The intersection point. | |

Vec3 | normal |

The normal at the intersection point. | |

Vec3 | tex_coord |

The texture coordinate at the intersection point. | |

FaceType | face |

The face that was intersected. BACK or FRONT. | |

bool | intersection |

True if IntersectionInfo has been used when an intersection was detected. | |

HAPIFloat | t |

Point along a line where intersection occurs. | |

GeometryPrimitive * | primitive |

The primitive that was intersected. | |

int | id |

The id of the primitive that was intersected if applicable, e.g. |

The id of the primitive that was intersected if applicable, e.g.

triangle index. -1 if no id exists.

True if IntersectionInfo has been used when an intersection was detected.

This can be used as an indication that some/all of the properties of the IntersectionInfo has been set to something useful.

Referenced by HAPI::Collision::BBPrimitiveTree::lineIntersect(), HAPI::Collision::BinaryBoundTree::lineIntersect(), HAPI::Collision::Triangle::lineIntersect(), HAPI::Collision::BBPrimitiveTree::movingSphereIntersect(), HAPI::Collision::LineSegment::movingSphereIntersect(), HAPI::Collision::Plane::movingSphereIntersect(), HAPI::Collision::Sphere::movingSphereIntersect(), HAPI::Collision::BinaryBoundTree::movingSphereIntersect(), and HAPI::Collision::Triangle::movingSphereIntersect().

Point along a line where intersection occurs.

Used by collision functions that detects collision along a line ( lineIntersect, movingSphereIntersect ).

Referenced by HAPI::Collision::PlaneConstraint::lineIntersect(), HAPI::Collision::Sphere::lineIntersect(), HAPI::Collision::Plane::lineIntersect(), HAPI::Collision::Point::lineIntersect(), HAPI::Collision::Triangle::lineIntersect(), HAPI::Collision::BBPrimitiveTree::movingSphereIntersect(), HAPI::Collision::Point::movingSphereIntersect(), HAPI::Collision::LineSegment::movingSphereIntersect(), HAPI::Collision::Plane::movingSphereIntersect(), HAPI::Collision::Sphere::movingSphereIntersect(), HAPI::Collision::BinaryBoundTree::movingSphereIntersect(), HAPI::Collision::Triangle::movingSphereIntersect(), HAPI::GodObjectRenderer::renderHapticsOneStep(), and HAPI::GodObjectRenderer::tryProxyMovement().

The documentation for this struct was generated from the following file:

Generated on Fri Nov 7 10:24:34 2008 for HAPI by 1.5.7