# [−][src]Trait tray_rust::geometry::Geometry

Trait implemented by geometric primitives

## Required methods

`fn intersect(&self, ray: &mut Ray) -> Option<DifferentialGeometry>`

Test a ray for intersection with the geometry.
The ray should have been previously transformed into the geometry's
object space otherwise the test will be incorrect.
Returns the differential geometry containing the hit information if the
ray hit the object and set's the ray's `max_t`

member accordingly