A ImplicitFunction is defined by a MathFunction.

Its intersect uses Interval arithmetic and Newton's method to determine roots.

Inheritance

Constructors

ImplicitFunction(MathFunction f, [Shader shader])

Properties

cm → ContextModel

read / write
color → Vector4

The primary color of the primitive as vector4 (only used for GUI).

read-only, inherited
colorString → String

The primary color of the primitive as CSS rgba string (only used for GUI).

read-only, inherited
f → MathFunction

read / write
hashCode → int

Get a hash code for this object.

read-only, inherited
id → int

Unique id of the primitive.

read-only, inherited
maxDistance → num

read-only
origin → Point3

The origin of the primitive (only used for GUI).

read-only, inherited
runtimeType → Type

A representation of the runtime type of the object.

read-only, inherited

Operators

operator ==(other) → bool

The equality operator.

inherited

Methods

findRoot(MathFunction g, Interval i) → num

findRootBF(MathFunction g, Interval i) → double

getShader(Intersection intersect) Shader

Returns the shader for a given intersection point.

intersect(Ray r, num prevBestDistance) Intersection

Performs a ray - primitive intersection test. Returns an Intersection object with the associated information.

newtonRoot(MathFunction f, num startValue) → num

noSuchMethod(Invocation invocation) → dynamic

Invoked when a non-existent method or property is accessed.

inherited
toString() → String

Returns a string representation of this object.