Ray

class Communicator.Ray()

Object representing a Ray.

Constructors

Properties


Constructors

Ray.constructor([origin[, direction]])
Arguments
Return type

Ray()

Properties

Ray.direction
Type

Point3()

Ray.origin
Type

Point3()

Methods

assign

Ray.assign(ray)

Sets this ray equal to another ray

Arguments
  • ray (Ray()) – the ray to assign

Return type

Ray()

copy

Ray.copy()

Creates a copy of this ray

Return type

Ray()

Returns

a copy of this ray object

negate

Ray.negate()

Flips the ray’s direction.

Return type

Ray()