Options
All
  • Public
  • Public/Protected
  • All
Menu

Class POV

Hierarchy

  • POV

Index

Constructors

Properties

Accessors

Methods

Constructors

Private constructor

  • new POV(size: number): POV

Properties

Private grid

grid: boolean[][]

Private listRay

listRay: POVRay[]

Private size

size: number

Accessors

Private getListRayon

  • get getListRayon(): object[][]

Methods

Private bresenham

  • bresenham(x1: number, y1: number, x2: number, y2: number, guaranteeEndPoint?: boolean): POVRay
  • Virtually draw a line from (x1, y1) to (x2, y2) using Bresenham algorithm, returning the coordinates of the points that would belong to the line.

    Parameters

    • x1: number
    • y1: number
    • x2: number
    • y2: number
    • Default value guaranteeEndPoint: boolean = true

    Returns POVRay

    (Array of couples forming the line) Eg: array(array(2,100), array(3, 101), array(4, 102), array(5, 103)) Public domain Av'tW

Private generateRay

  • generateRay(cases: POVRay): void

Private recurse

  • recurse(search: any, arr: any[][]): POVPoint | false

Private run

  • run(): void

Static generatePOV

  • generatePOV(size: number): any

Generated using TypeDoc