Options
All
  • Public
  • Public/Protected
  • All
Menu

Class representing a ray-sphere intersection in 3D space

Hierarchy

  • Intersection

Index

Constructors

Properties

Methods

Constructors

constructor

  • Create an Intersection

    Parameters

    • t: number

      The distance on the ray

    • point: Vector4

      The intersection point

    • normal: Vector4

      The normal in the intersection

    • color: Vector4

      The color of the object at the intersection.

    • shininess: number

    Returns Intersection

Properties

color

color: Vector4

The color of the object at the intersection.

normal

normal: Vector4

The normal in the intersection

point

point: Vector4

The intersection point

shininess

shininess: number

t

t: number

The distance on the ray

Methods

closerThan

  • Determines whether this intersection is closer than the other

    Parameters

    Returns boolean

    The result

Generated using TypeDoc