Class ELVector

java.lang.Object
  |
  +--AbstractELExpression
        |
        +--ELVector
All Implemented Interfaces:
java.lang.Cloneable, ELExpression

public class ELVector
extends AbstractELExpression
implements ELExpression

A 3 vector.

   ELVector := ELScalar x ELScalar x ELScalar
 


Field Summary
(package private)  float blu
           
(package private)  float grn
           
(package private)  float red
           
 
Constructor Summary
ELVector()
           
ELVector(double r, double g, double b)
           
 
Method Summary
 java.lang.Object clone()
           
 void evaluate(ELMatrix out, ELEnvironment environment)
          Evaluates this expression.
 ELExpression geneticClone(ELCall parent, GeneticParameters gp)
          Clones, possibly mutating.
 java.lang.String toString()
           
 java.lang.String unparse()
          Generates an EL language source string sufficient to uniquely identify this expression.
 
Methods inherited from class AbstractELExpression
cloneSiblingMutation, cloneWithChildMutations, cloneWithReplacement, encloseInNewCallMutation, getNestedSubexpression, hasExternalInfluences, numNestedSubexpressions, randomNestedSubexpression, sameExpression
 
Methods inherited from class java.lang.Object
, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface ELExpression
cloneWithReplacement, getNestedSubexpression, hasExternalInfluences, numNestedSubexpressions, randomNestedSubexpression, sameExpression
 

Field Detail

red

float red

grn

float grn

blu

float blu
Constructor Detail

ELVector

public ELVector()

ELVector

public ELVector(double r,
                double g,
                double b)
Method Detail

geneticClone

public ELExpression geneticClone(ELCall parent,
                                 GeneticParameters gp)
Description copied from interface: ELExpression
Clones, possibly mutating. The operators will be shared between clones but no ELExpressions will be shared.
Specified by:
geneticClone in interface ELExpression
Following copied from interface: ELExpression
Parameters:
parent - Parent expression from previous generation. don't point at or mutate this; it is provided so you can get access to siblings. May be null if there is no parent (i.e. top-level expression).

clone

public java.lang.Object clone()
Specified by:
clone in interface ELExpression
Overrides:
clone in class AbstractELExpression

unparse

public java.lang.String unparse()
Description copied from interface: ELExpression
Generates an EL language source string sufficient to uniquely identify this expression.
Specified by:
unparse in interface ELExpression

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

evaluate

public void evaluate(ELMatrix out,
                     ELEnvironment environment)
Description copied from interface: ELExpression
Evaluates this expression.
Specified by:
evaluate in interface ELExpression