GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Processing
  • Download
  • Reference
  • Environment
  • Libraries
  • Tools
  • Wiki
  • Tutorials
  • Examples
  • Books
  • Forum
  • Overview
  • People
  • Privacy

This view

  • Original page
  • New address

GeezerVison is showing processing.org — resetMatrix() / Reference

Reference+
Documentation→Reference→Transform

Name

resetMatrix()

Description

Replaces the current matrix with the identity matrix. The equivalent function in OpenGL is glLoadIdentity().

Examples

  • size(400, 400, P3D);
    noFill();
    box(320);
    printMatrix();
    // Prints:
    // 001.0000  000.0000  000.0000 -200.0000
    // 000.0000  001.0000  000.0000 -200.0000
    // 000.0000  000.0000  001.0000 -346.4102
    // 000.0000  000.0000  000.0000  001.0000
    
    resetMatrix();
    box(320);
    printMatrix();
    // Prints:
    // 1.0000  0.0000  0.0000  0.0000
    // 0.0000  1.0000  0.0000  0.0000
    // 0.0000  0.0000  1.0000  0.0000
    // 0.0000  0.0000  0.0000  1.0000

Syntax

  • resetMatrix()

Return

  • void

Related

  • pushMatrix()
  • popMatrix()
  • applyMatrix()
  • printMatrix()
Creative Commons License

This work is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.