org.friendularity.api.struct
Interface NumericMapper<NumType>

All Known Implementing Classes:
MathExprNode, NumericNode, VisualMathExprLib.ColorExprNode, VisualMathExprLib.QuaternionExprNode, VisualMathExprLib.Vec3fExprNode

public interface NumericMapper<NumType>

Stateless transformation from doubles[] to NumType - a useful output type. So far we only define the ability to update an existing NumType, not to create them.

Author:
Stu B.

Method Summary
 void writeNumericFromDoublesBuf(NumType numeric, double[] buffer)
          Writes into an existing NumType from a double-buffer.
 

Method Detail

writeNumericFromDoublesBuf

void writeNumericFromDoublesBuf(NumType numeric,
                                double[] buffer)
Writes into an existing NumType from a double-buffer. This function is decoupled from the identity of the node itself.

Parameters:
numeric -
buffer -


Copyright © 2011-2014. All Rights Reserved.