Matrix4d.setPerspectiveRect

Set this matrix to be a symmetric perspective projection frustum transformation for a right-handed coordinate system using the given NDC z range. <p> In order to apply the perspective projection transformation to an existing transformation, use {@link #perspectiveRect(double, double, double, double, bool) perspectiveRect()}.

@see #perspectiveRect(double, double, double, double, bool)

@param width the width of the near frustum plane @param height the height of the near frustum plane @param zNear near clipping plane distance. This value must be greater than zero. If the special value {@link Double#POSITIVE_INFINITY} is used, the near clipping plane will be at positive infinity. In that case, <code>zFar</code> may not also be {@link Double#POSITIVE_INFINITY}. @param zFar far clipping plane distance. This value must be greater than zero. If the special value {@link Double#POSITIVE_INFINITY} is used, the far clipping plane will be at positive infinity. In that case, <code>zNear</code> may not also be {@link Double#POSITIVE_INFINITY}. @param zZeroToOne whether to use Vulkan's and Direct3D's NDC z range of <code>[0..+1]</code> when <code>true</code> or whether to use OpenGL's NDC z range of <code>[-1..+1]</code> when <code>false</code> @return this

  1. Matrix4d setPerspectiveRect(double width, double height, double zNear, double zFar, bool zZeroToOne)
    struct Matrix4d
    ref return
    setPerspectiveRect
    (
    double width
    ,
    double height
    ,
    double zNear
    ,
    double zFar
    ,)
  2. Matrix4d setPerspectiveRect(double width, double height, double zNear, double zFar)

Meta