com.singularsys.jep.functions

## Class Cross

- java.lang.Object
- - com.singularsys.jep.functions.PostfixMathCommand
  - - com.singularsys.jep.functions.BinaryFunction
    - - com.singularsys.jep.functions.Cross

- All Implemented Interfaces:
    PostfixMathCommandI, java.io.Serializable

      public class Cross
      extends BinaryFunction

  The cross product of two 3D vectors.
  Author:
    Richard Morris
  See Also:
    Serialized Form

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Multiply` | `mul`
    `protected Subtract` | `sub`

    - ### Fields inherited from class com.singularsys.jep.functions.PostfixMathCommand

      `curNumberOfParameters, name, NaN, numberOfParameters`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Cross()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `java.lang.Object` | `cross(java.lang.Object param1, java.lang.Object param2)`
    `java.lang.Object` | `cross(java.util.Vector<?> lhs, java.util.Vector<?> rhs)`
    `java.lang.Object` | `eval(java.lang.Object l, java.lang.Object r)`

    - ### Methods inherited from class com.singularsys.jep.functions.BinaryFunction

      `run`

    - ### Methods inherited from class com.singularsys.jep.functions.PostfixMathCommand

      `asArray, asBool, asDouble, asInt, asLong, asStrictInt, asString, checkNumberOfParameters, getName, getNumberOfParameters, setCurNumberOfParameters, setName, toString, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait`

- - ### Field Detail

    - #### sub

          protected Subtract sub

    - #### mul

          protected Multiply mul

  - ### Constructor Detail

    - #### Cross

          public Cross()

  - ### Method Detail

    - #### eval

          public java.lang.Object eval(java.lang.Object l,
                                       java.lang.Object r)
                                throws EvaluationException

      Specified by:
        `eval` in class `BinaryFunction`
      Throws:
        `EvaluationException`

    - #### cross

          public java.lang.Object cross(java.lang.Object param1,
                                        java.lang.Object param2)
                                 throws EvaluationException

      Throws:
        `EvaluationException`

    - #### cross

          public java.lang.Object cross(java.util.Vector<?> lhs,
                                        java.util.Vector<?> rhs)
                                 throws EvaluationException

      Throws:
        `EvaluationException`

Copyright © 2018 Singular Systems http://www.singularsys.com/jep