<frustum-matrix4> ( xy-dim near far -- matrix )

Extra matrix operations

Extra matrix operations

Prev: | <vandermonde-matrix> ( u n -- matrix ) |

Next: | <ortho-matrix4> ( factors -- matrix ) |

Vocabulary

math.matrices.extras

Inputs

Outputs

Word description

Make a 4 x 4 matrix suitable for representing an occlusion frustum. A viewing or occlusion frustum is the three-dimensional region of a three-dimensional object which is visible on the screen. See frustum on Wikipedia.

Notes

Only the first two values in xy-dim are used.

Examples

See also

glFrustum

Definition

math.matrices.extras

Inputs

xy-dim | a pair |

near | a number |

far | a number |

Outputs

matrix | a matrix |

Word description

Make a 4 x 4 matrix suitable for representing an occlusion frustum. A viewing or occlusion frustum is the three-dimensional region of a three-dimensional object which is visible on the screen. See frustum on Wikipedia.

Notes

Only the first two values in xy-dim are used.

Examples

USING: math.matrices.extras prettyprint ;
{ 5 4 } 5 6 <frustum-matrix4> .

{ { 1.0 0.0 0.0 0.0 } { 0.0 1.25 0.0 0.0 } { 0.0 0.0 -11.0 -60.0 } { 0.0 0.0 -1.0 0.0 } }

{ { 1.0 0.0 0.0 0.0 } { 0.0 1.25 0.0 0.0 } { 0.0 0.0 -11.0 -60.0 } { 0.0 0.0 -1.0 0.0 } }

See also

glFrustum

Definition

This documentation was generated offline from a
`load-all`

image. If you want, you can also
browse the documentation from within the UI developer tools. See
the Factor website
for more information.

Factor 0.101 x86.64 (2281, heads/master-c3eb110494, Sep 12 2024 17:21:05)