Packages

package geometry

Ordering
  1. Alphabetic
Visibility
  1. Public
  2. Protected

Type Members

  1. final case class Cylinder(p: Point3D, relativeUp: Vector3, radius: Float, height: Float) extends Geometry3D with Product with Serializable

    The instance of a volumetric region that encapsulates all points within a certain distance of a central point.

    The instance of a volumetric region that encapsulates all points within a certain distance of a central point. The region is characterized by a regular circular cross-section when observed from above or below and a flat top and a flat base when viewed from the side. The "base" is where the origin point is defined (at the center of a circular cross-section) and the "top" is discovered a height from the base along what the cylinder considers its relativeUp direction.

    p

    the point

    relativeUp

    what the cylinder considers its "up" direction

    radius

    a distance expressed in all circular cross-sections along the relativeUp direction

    height

    the distance between the "base" and the "top"

  2. trait Geometry3D extends PrimitiveGeometry

    Basic interface of all three-dimensional geometry.

    Basic interface of all three-dimensional geometry. For the only real requirement for a hree-dimensional geometric figure is that it has three components of position and an equal number of components demonstrating equal that said dimensionality.

  3. trait Line extends Slope

    Characteristics of a geometric figure indicating an infinite slope - a mathematical line.

    Characteristics of a geometric figure indicating an infinite slope - a mathematical line. The slope is always a unit vector. The point that assists to define the line is a constraint that the line must pass through.

  4. final case class Line3D(p: Point3D, d: Vector3) extends Geometry3D with Line with Product with Serializable

    The instance of a geometric coordinate position and a specific direction from that position.

    The instance of a geometric coordinate position and a specific direction from that position. Mathematical lines have infinite length and their slope is represented as a unit vector. The point is merely a point used to assist in defining the line.

    p

    the point of origin

    d

    the direction

  5. trait Point extends AnyRef

    Characteristics of a geometric figure with only three coordinates to define a position.

  6. final case class Point3D(x: Float, y: Float, z: Float) extends Geometry3D with Point with Product with Serializable

    The instance of a geometric coordinate position.

    The instance of a geometric coordinate position.

    x

    the 'x' coordinate of the position

    y

    the 'y' coordinate of the position

    z

    the 'z' coordinate of the position

    See also

    Vector3

  7. trait PrimitiveGeometry extends AnyRef

    Basic interface for all geometry.

  8. final case class Ray3D(p: Point3D, d: Vector3) extends Geometry3D with Line with Product with Serializable

    The instance of a geometric coordinate position and a specific direction from that position.

    The instance of a geometric coordinate position and a specific direction from that position. Rays are like mathematical lines in that they have infinite length; but, that infinite length is only expressed in a single direction, rather than proceeding in both a direction and its opposite direction from a target point. Infinity just be like that. Additionally, the point is not merely any point on the ray used to assist defining it and is instead considered the clearly-defined origin of the ray.

    p

    the point of origin

    d

    the direction

  9. trait Segment extends Slope

    Characteristics of a geometric figure that have two endpoints, defining a fixed-length slope.

  10. final case class Segment3D(p1: Point3D, p2: Point3D) extends Geometry3D with Segment with Product with Serializable

    The instance of a limited span between two geometric coordinate positions, called "endpoints".

    The instance of a limited span between two geometric coordinate positions, called "endpoints". Unlike mathematical lines, slope is treated the same as the vector leading from one point to the other and is the length of the segment.

    p1

    a point

    p2

    another point

  11. trait Slope extends AnyRef

    Characteristics of a geometric figure defining a direction or a progressive change in coordinates.

  12. final case class Sphere(p: Point3D, radius: Float) extends Geometry3D with Product with Serializable

    The instance of a volumetric region that encapsulates all points within a certain distance of a central point.

    The instance of a volumetric region that encapsulates all points within a certain distance of a central point. (That's what a sphere is.) A sphere has no real "top", "base", or "side" as all directions are described the same.

    p

    the point

    radius

    a distance that spans all points in any direction from the central point

Value Members

  1. object Cylinder extends Serializable
  2. object Geometry
  3. object GeometryForm
  4. object Line3D extends Serializable
  5. object Point3D extends Serializable
  6. object Ray3D extends Serializable
  7. object Segment3D extends Serializable
  8. object Slope
  9. object Sphere extends Serializable

Ungrouped