public final class R2RenderTargetDescriptions extends Object
| Modifier and Type | Method and Description |
|---|---|
static <T extends R2RenderTargetDescriptionType> |
scale(T a,
BiFunction<T,com.io7m.jareas.core.AreaInclusiveUnsignedLType,T> constructor,
double scale)
Scale the given render target description by
scale. |
static com.io7m.jareas.core.AreaInclusiveUnsignedLType |
scaleAreaInclusive(com.io7m.jareas.core.AreaInclusiveUnsignedLType ao,
double scale)
Scale the given inclusive area by the given scale value.
|
public static <T extends R2RenderTargetDescriptionType> T scale(T a, BiFunction<T,com.io7m.jareas.core.AreaInclusiveUnsignedLType,T> constructor, double scale)
scale. The resulting
description area will have the same lower corner - only the upper corner is
scaled.T - The precise type of render target descriptiona - A descriptionconstructor - A function that yields a new render target description,
giving an existing description and an inclusive areascale - The scale valuepublic static com.io7m.jareas.core.AreaInclusiveUnsignedLType scaleAreaInclusive(com.io7m.jareas.core.AreaInclusiveUnsignedLType ao,
double scale)
ao - The inclusive areascale - The scale valueCopyright © 2017 <code@io7m.com> http://io7m.com