Quadratic

final case class Quadratic(near: Int, far: Option[Int]) extends Falloff

Light decays quadratically (inverse-square) forever. If a "far" distance is specified then the light will be artificially attenuated to zero by the time it reaches the limit.

Companion
object
trait Serializable
trait Product
trait Equals
trait Falloff
class Object
trait Matchable
class Any

Value members

Concrete methods

def withFar(newFar: Int): Quadratic
def withNear(newNear: Int): Quadratic
def withRange(newNear: Int, newFar: Int): Quadratic

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product