inmath ~master (2022-05-26T00:17:45.8140456)
Dub
Repo
Matrix.perspective
inmath
linalg
Matrix
Returns a perspective matrix (4x4 and floating-point matrices only).
Matrix
perspective
(mt width, mt height, mt fov, mt near, mt far)
Matrix
perspective
(mt left, mt right, mt bottom, mt top, mt near, mt far)
struct
Matrix
(type, int rows_, int cols_)
@
safe
pure nothrow static
static if
(!(
(rows == 2) && (cols == 2)
))
static if
(!(
(rows == 3) && (cols == 3)
))
static if
(
(rows == 4) && (cols == 4)
)
static if
(
isFloatingPoint!mt
)
Matrix
perspective
(
mt
left
,
mt
right
,
mt
bottom
,
mt
top
,
mt
near
,
mt
far
)
if
(
(
rows_
> 0
)
&&
(
cols_
> 0
)
)
Meta
Source
See Implementation
inmath
linalg
Matrix
aliases
mt
ok
constructors
this
functions
clear
det
inverse
invert
isFinite
makeIdentity
opBinary
opBinaryRight
opOpAssign
ptr
rotate
rotateX
rotateY
rotateZ
scale
toPrettyString
toString
translate
transpose
transposed
static functions
identity
isCompatibleMatrixImpl
isCompatibleVectorImpl
lookAt
orthographic
orthographicInverse
perspective
persperctiveInverse
rotation
scaling
translation
xRotation
yRotation
zRotation
static variables
cols
rows
templates
isCompatibleMatrix
isCompatibleVector
variables
matrix
Returns a perspective matrix (4x4 and floating-point matrices only).