public final class R2Matrices extends Object implements R2MatricesType
R2MatricesType
interface.Modifier and Type | Method and Description |
---|---|
static R2Matrices |
create() |
<A,B> B |
withObserver(com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<R2SpaceWorldType,R2SpaceEyeType> view,
R2ProjectionReadableType projection,
A x,
BiFunction<R2MatricesObserverType,A,B> f)
Evaluate matrices for the given observer.
|
public static R2Matrices create()
public <A,B> B withObserver(com.io7m.jtensors.core.parameterized.matrices.PMatrix4x4D<R2SpaceWorldType,R2SpaceEyeType> view, R2ProjectionReadableType projection, A x, BiFunction<R2MatricesObserverType,A,B> f)
R2MatricesType
withObserver
in interface R2MatricesType
A
- The type of consumed valuesB
- The type of returned valuesview
- The observer's view matrixprojection
- The observer's projectionx
- A context value passed to f
f
- The function that will receive the evaluated matricesB
Copyright © 2017 <code@io7m.com> http://io7m.com