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