ray

0.0.1 • Public • Published

Ray

Minimal possible Ray primitive

Introduction

Installation

npm install ray

Usage

Examples

TODO

APIs

Ray

constructor (positions, direction, dimensions = 3)

position A point in space representing the start of the ray.

direction A vector representing the direction the ray points towards.

dimensions the number of dimensions of space the ray exists within.

Constructs a new Ray primitive with the specified parameters.

getMajorAxis ()

Returns the 0-based index of the ray's direction vector with the greatest magnitude.

toRaySegment ()

Returns a RaySegment - the line segment created by minT to maxT along the ray.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.0.1
    75
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 0.0.1
    75

Package Sidebar

Install

npm i ray

Weekly Downloads

75

Version

0.0.1

License

none

Last publish

Collaborators

  • imbcmdth