package d3
- Alphabetic
- Public
- Protected
Type Members
- final case class Cuboid(p: Point, relativeForward: Vector3, relativeUp: Vector3, length: Float, width: Float, height: Float) extends VolumetricGeometry with Product with Serializable
Untested geometry.
Untested geometry.
- p
na
- relativeForward
na
- relativeUp
na
- length
na
- width
na
- height
na
- final case class Cylinder(p: Point, relativeUp: Vector3, radius: Float, height: Float) extends VolumetricGeometry 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 itsrelativeUp
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"
- 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 three-dimensional geometric figure is that it has three components of position and an equal number of components demonstrating equal that said dimensionality.
- final case class Line(p: Point, d: Vector3) extends Geometry3D with geometry.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
- final case class Point(x: Float, y: Float, z: Float) extends VolumetricGeometry with geometry.Point with Product with Serializable
The instance of a minute geometric coordinate position in three-dimensional space.
The instance of a minute geometric coordinate position in three-dimensional space. The point is allowed to substitute for a sphere of zero radius, hence why it is volumetric (ignoring that a sphere of zero radius has no volume).
- x
the 'x' coordinate of the position
- y
the 'y' coordinate of the position
- z
the 'z' coordinate of the position
- See also
Vector3
- final case class Ray(p: Point, d: Vector3) extends Geometry3D with geometry.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
- final case class Segment(p1: Point, p2: Point) extends Geometry3D with geometry.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
- final case class Sphere(p: Point, radius: Float) extends VolumetricGeometry 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.) When described by its center point, a sphere has no distinct "top", "base", or "side"; all directions are described in the same way in reference to this center. It can be considered having a "base" and other "faces" for the purposes of settling on a surface (the ground).
- p
the point
- radius
a distance that spans all points in any direction from the central point
- trait VolumetricGeometry extends Geometry3D
Value Members
- object Cylinder extends Serializable
- object Line extends Serializable
- object Point extends Serializable
- object Ray extends Serializable
- object Segment extends Serializable
- object Sphere extends Serializable