# Ray

class `Ray`()

  Object representing a Ray.

  ## Index

  Constructors

  - `constructor`

  Properties

  - `direction`
  - `origin`

  Methods

  - `assign`
  - `copy`
  - `negate`

## Constructors

`Ray.``constructor`()
  Ray(origin: `Point3`, direction: `Point3`): `Ray`

  Parameters

  > origin: `Point3`

  > direction: `Point3`

  Returns: `Ray`

## Properties

`Ray.``direction`
  direction: `Point3`

`Ray.``origin`
  origin: `Point3`

## Methods

`Ray.``assign`()
  assign(ray: `Ray`): this

  Sets this ray equal to another ray

  Parameters

  > ray: `Ray`

  > > the ray to assign

  Returns: this

`Ray.``copy`()
  copy(): `Ray`

  Creates a copy of this ray

  Returns: `Ray`

  > a copy of this ray object

`Ray.``negate`()
  negate(): this

  Flips the ray’s direction.

  Returns: this

Conversation saved
HOOPSY BETA

### Hello! I'm HOOPSY

Your Docs generative AI assistant. Ask me anything about HOOPS Visualize Web or choose a sample question below to start a conversation:

What is HOOPS Visualize Web?
What are the latest release notes for HOOPS Visualize Web?
How do I start evaluating HOOPS Visualize Web?
How do I write my first sample application?
How can I get assistance?

HOOPSY may store conversations according to OpenAI's policy. Responses may not always be accurate.

HOOPSY is thinking...