Shapes v0.1.0 GEOF.Shapes
Shared utility functions for working with 3D geometry.
Link to this section Summary
Types
A line in three dimensions represented by two points on the line
A triangle in three dimensions represented by its vertices
A point in three dimensions
Functions
Given a position
on a planetary sphere, determines which face of the unit tetrahedron the position lies within
Given a position
on a planetary sphere, determines which face of the unit octahedron the position lies within
Given a line
and a triangle
in 3D space, determines whether the line intersects with the triangle
Link to this section Types
line3()
A line in three dimensions represented by two points on the line.
triangle3()
A triangle in three dimensions represented by its vertices.
vector3()
A point in three dimensions.
Link to this section Functions
face_of_4_hedron(arg)
face_of_4_hedron(GEOF.Planet.Geometry.position()) :: pos_integer()
face_of_4_hedron(GEOF.Planet.Geometry.position()) :: pos_integer()
Given a position
on a planetary sphere, determines which face of the unit tetrahedron the position lies within.
face_of_8_hedron(arg)
face_of_8_hedron(GEOF.Planet.Geometry.position()) :: pos_integer()
face_of_8_hedron(GEOF.Planet.Geometry.position()) :: pos_integer()
Given a position
on a planetary sphere, determines which face of the unit octahedron the position lies within.
line_intersects_triangle?(arg1, arg2)
Given a line
and a triangle
in 3D space, determines whether the line intersects with the triangle.