GetMatrix(3)

GetMatrix3

Retrieve the contents of a transformation matrix

Usage

#include <volpack.h>

vpResult

vpGetMatrix(vpc, matrix_code, matrix)

vpContext *vpc;

int matrix_code;

vpMatrix4 matrix;

Arguments

vpc

VolPack context from vpCreateContext.

matrix_code

A code specifying one of the VolPack transformation matrices (VP_MODEL, VP_VIEW, VP_PROJECT or VP_SCREEN).

matrix

Matrix for storing the result.

Overview

vpGetMatrix retrieves the contents of one of the transformation matrices (see vpCurrentMatrix(3)). The special code VP_SCREEN causes the function to compute the transformation from object coordinates to image coordinates and return a matrix describing this transformation.

Errors

The normal return value is VP_OK. The following error return value is possible:

VPERROR_BAD_OPTION

The matrix_code argument is invalid.

Releases

9 releases since Debian 5.0 (Lenny); the text changed 1 time.

  1. 5.0–10
  2. 11–13

From libvolpack1-dev 1.0b3-10 in Debian 13 (Trixie). Parsed by carta from the page's man source.