# PSF-LoginServer - master - net.psforever.objects.geometry.d3
PSF - LoginServer - master - net.psforever.objects.geometry.d3
Keywords: PSF LoginServer master net.psforever.objects.geometry.d3

PSF-LoginServer - master < Back


# Packages

-  package root
  Definition Classes
    root
-  package net
  Definition Classes
    root
-  package psforever
  Definition Classes
    net
-  package objects
  Definition Classes
    psforever
-  package geometry
  Definition Classes
    objects
-  package d2
  Definition Classes
    geometry
-  package d3
  Definition Classes
    geometry
- Cuboid
- Cylinder
- Geometry3D
- Line
- Point
- Ray
- Segment
- Sphere
- VolumetricGeometry

p

net.psforever.objects.geometry

# d3

#### package d3


Ordering

1. Alphabetic

Visibility

1. Public
2. Protected

### Type Members

1.  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

2.  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 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"

3.  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.

4.  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

5.  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`

6.  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

7.  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

8.  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

9.  trait VolumetricGeometry extends Geometry3D

### Value Members

1.  object Cylinder extends Serializable
2.  object Line extends Serializable
3.  object Point extends Serializable
4.  object Ray extends Serializable
5.  object Segment extends Serializable
6.  object Sphere extends Serializable

### Ungrouped