Module ncollide2d::utils

source ·
Expand description

Various unsorted geometrical and logical operators.

Structs

A hasher builder that creates DefaultHasher with default keys.
A unique idetifier given by a usize id and a generation number.
A structure that implements Eq and is hashable even if the wrapped data implements only PartialEq.
An identifiers allocator.
A reference packed with a cost value.
A pair of elements sorted in increasing order.

Traits

Trait that transforms thing to a slice of u8.
Extra operations with isometries.

Functions

Computes the direction pointing toward the right-hand-side of an oriented segment.
Computes the center of a set of point.
Computes the circumcircle of a triangle.
Tests if a point is inside of a triangle.
Computes the median of a set of values.
Computes the support point of a cloud of points.
Computes the index of the support point of a cloud of points.
Tests if the given point is inside of a polygon with arbitrary orientation.
Sorts a set of three values in increasing order.
Computes the area of a triangle.
Computes the center of a triangle.
Computes the perimeter of a triangle.