geom v0.1.0 Geom.Shape.Face

The face of a polygon represented by its 3 vertices.

Summary

Functions

Returns true if the vector is inside the face, false otherwise

Returns true if the vector is one of the face’s vertices, false otherwise

Types

t()
t :: %Geom.Shape.Face{v1: Geom.Shape.Vector.t, v2: Geom.Shape.Vector.t, v3: Geom.Shape.Vector.t}

Functions

contains?(face, v0)
contains?(Geom.Shape.Face.t, Geom.Shape.Vector.t) :: boolean

Returns true if the vector is inside the face, false otherwise.

is_own_vertex?(face, v0)
is_own_vertex?(Geom.Shape.Face.t, Geom.Shape.Vector.t) :: boolean

Returns true if the vector is one of the face’s vertices, false otherwise.