Camera

class Sc.Camera()

Methods

fieldHeight

Camera.fieldHeight()
Return type

number

fieldWidth

Camera.fieldWidth()
Return type

number

fullMatrix

Camera.fullMatrix(width, height)
Arguments
  • width (number()) – None

  • height (number()) – None

Return type

Matrix16

nearLimit

Camera.nearLimit()
Return type

number

position

Camera.position()
Return type

Vector3

projection

Camera.projection()
Return type

Projection

projectionMatrix

Camera.projectionMatrix(width, height)
Arguments
  • width (number()) – None

  • height (number()) – None

Return type

Matrix16

reset

Camera.reset(projection, position, target, up, width, height)
Arguments
  • projection (Projection()) – None

  • position (Vector3()) – None

  • target (Vector3()) – None

  • up (Vector3()) – None

  • width (number()) – None

  • height (number()) – None

Return type

void

setNearLimit

Camera.setNearLimit(nearLimit)
Arguments
  • nearLimit (number()) – None

Return type

void

setPosition

Camera.setPosition(position)
Arguments
  • position (Vector3()) – None

Return type

void

setTarget

Camera.setTarget(target)
Arguments
  • target (Vector3()) – None

Return type

void

setUpVector

Camera.setUpVector(upVector)
Arguments
  • upVector (Vector3()) – None

Return type

void

target

Camera.target()
Return type

Vector3

upVector

Camera.upVector()
Return type

Vector3

viewMatrix

Camera.viewMatrix()
Return type

Matrix16