Partager via


Matrix.PerspectiveM(Single[], Int32, Single, Single, Single, Single) Method

Definition

Defines a projection matrix in terms of a field of view angle, an aspect ratio, and z clip planes.

[Android.Runtime.Register("perspectiveM", "([FIFFFF)V", "")]
public static void PerspectiveM (float[]? m, int offset, float fovy, float aspect, float zNear, float zFar);
[<Android.Runtime.Register("perspectiveM", "([FIFFFF)V", "")>]
static member PerspectiveM : single[] * int * single * single * single * single -> unit

Parameters

m
Single[]

the float array that holds the perspective matrix

offset
Int32

the offset into float array m where the perspective matrix data is written

fovy
Single

field of view in y direction, in degrees

aspect
Single

width to height aspect ratio of the viewport

zNear
Single

zNear

zFar
Single

zFar

Attributes

Remarks

Defines a projection matrix in terms of a field of view angle, an aspect ratio, and z clip planes.

Java documentation for android.opengl.Matrix.perspectiveM(float[], int, float, float, float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to