gfm.math.shapes

This module implements some abstract geometric shapes:

  • Line segments.
  • Triangle.
  • Circles/spheres.
  • Rays
  • Planes
  • Frustum

Members

Aliases

planed
alias planed = Plane!double
Undocumented in source.
planef
alias planef = Plane!float
Undocumented in source.
ray2d
alias ray2d = Ray!(double, 2)
Undocumented in source.
ray2f
alias ray2f = Ray!(float, 2)
Undocumented in source.
ray3d
alias ray3d = Ray!(double, 3)
Undocumented in source.
ray3f
alias ray3f = Ray!(float, 3)
Undocumented in source.
seg2d
alias seg2d = Segment!(double, 2)
Undocumented in source.
seg2f
alias seg2f = Segment!(float, 2)
Undocumented in source.
seg3d
alias seg3d = Segment!(double, 3)
Undocumented in source.
seg3f
alias seg3f = Segment!(float, 3)
Undocumented in source.
sphere2d
alias sphere2d = Sphere!(double, 2)
Undocumented in source.
sphere2f
alias sphere2f = Sphere!(float, 2)
Undocumented in source.
sphere3d
alias sphere3d = Sphere!(double, 3)
Undocumented in source.
sphere3f
alias sphere3f = Sphere!(float, 3)
Undocumented in source.
triangle2d
alias triangle2d = Triangle!(double, 2)
Undocumented in source.
triangle2f
alias triangle2f = Triangle!(float, 2)
Undocumented in source.
triangle3d
alias triangle3d = Triangle!(double, 3)
Undocumented in source.
triangle3f
alias triangle3f = Triangle!(float, 3)
Undocumented in source.

Structs

Frustum
struct Frustum(T)

3D frustum.

Plane
struct Plane(T)

3D plane.

Ray
struct Ray(T, int N)

A Ray ir a point + a direction.

Segment
struct Segment(T, int N)

A Segment is 2 points. When considered like a vector, it represents the arrow from a to b.

Sphere
struct Sphere(T, int N)

A Sphere is a point + a radius.

Triangle
struct Triangle(T, int N)

A Triangle is 3 points.

Meta