This page has been translated automatically.
Video Tutorials
Interface
Essentials
Advanced
How To
UnigineEditor
Interface Overview
Assets Workflow
Settings and Preferences
Working With Projects
Adjusting Node Parameters
Setting Up Materials
Setting Up Properties
Lighting
Landscape Tool
Sandworm
Using Editor Tools for Specific Tasks
Extending Editor Functionality
Built-in Node Types
Nodes
Objects
Effects
Decals
Light Sources
Geodetics
World Nodes
Sound Objects
Pathfinding Objects
Players
Programming
Fundamentals
Setting Up Development Environment
Usage Examples
UnigineScript
C++
C#
UUSL (Unified UNIGINE Shader Language)
File Formats
Rebuilding the Engine Tools
GUI
Double Precision Coordinates
API
Containers
Common Functionality
Controls-Related Classes
Engine-Related Classes
Filesystem Functionality
GUI-Related Classes
Node-Related Classes
Objects-Related Classes
Networking Functionality
Pathfinding-Related Classes
Physics-Related Classes
Plugins-Related Classes
IG Plugin
CIGIConnector Plugin
Rendering-Related Classes
Content Creation
Content Optimization
Materials
Art Samples
Tutorials

Unigine.mat3 Struct.

Notice
The functions listed below are the members of the Unigine.MathLib namespace.

mat3 Class

Properties

float m00#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m10#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m20#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m01#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m11#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m21#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m02#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m12#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

float m22#

Matrix element in the corresponding row and column mxy = M[x, y]. Provides convenient access to matrix elements.

mat3 ZERO#

Matrix, filled with zeros (0).

mat3 ONE#

Matrix, filled with ones (1).

mat3 IDENTITY#

Identity matrix.

quat Quat#

vec3 Row0#

First row.

vec3 Row1#

Second row.

vec3 Row2#

Third row.

vec3 Column0#

First column.

vec3 Column1#

Second column.

vec3 Column2#

Third column.

vec3 AxisX#

X axis.

vec3 AxisY#

Y axis.

vec3 AxisZ#

Z axis.

vec3 Diagonal#

Vector containing diagonal elements of the matrix.

float Trace#

Trace of the matrix: (sum of its diagonal elements).

float Determinant#

Determinant of the matrix.

Members


bool operator== ( mat3 v0, mat3 v1 ) #

Performs equal comparison.

Arguments

  • mat3 v0 - First value.
  • mat3 v1 - Second value.

bool operator!= ( mat3 v0, mat3 v1 ) #

Not equal comparison.

Arguments

  • mat3 v0 - First value.
  • mat3 v1 - Second value.

bool Equals ( mat3 other ) #

Checks if the vector and the specified argument are equal (epsilon).

Arguments

  • mat3 other - Value to be checked for equality.

Return value

Return value.

bool Equals ( object obj ) #

Checks if the vector and the specified argument are equal (epsilon).

Arguments

Return value

Return value.

int GetHashCode ( ) #

Returns a hash code for the current object. Serves as the default hash function.

Return value

Resulting int value.

mat3 operator- ( mat3 m ) #

Subtraction.

Arguments

mat3 operator* ( mat3 m, float v ) #

Multiplication.

Arguments

  • mat3 m - Matrix.
  • float v - Value.

vec2 operator* ( mat3 m, vec2 v ) #

Multiplication.

Arguments

vec2 operator* ( vec2 v, mat3 m ) #

Multiplication.

Arguments

vec3 operator* ( mat3 m, vec3 v ) #

Multiplication.

Arguments

vec3 operator* ( vec3 v, mat3 m ) #

Multiplication.

Arguments

dvec2 operator* ( mat3 m, dvec2 v ) #

Multiplication.

Arguments

dvec2 operator* ( dvec2 v, mat3 m ) #

Multiplication.

Arguments

dvec3 operator* ( mat3 m, dvec3 v ) #

Multiplication.

Arguments

dvec3 operator* ( dvec3 v, mat3 m ) #

Multiplication.

Arguments

mat3 operator* ( mat3 m0, mat3 m1 ) #

Multiplication.

Arguments

mat3 operator+ ( mat3 m0, mat3 m1 ) #

Addition.

Arguments

mat3 operator- ( mat3 m0, mat3 m1 ) #

Subtraction.

Arguments

void Set ( float m00_, float m10_, float m20_, float m01_, float m11_, float m21_, float m02_, float m12_, float m22_ ) #

Sets the value using the specified argument(s).

Arguments

  • float m00_
  • float m10_
  • float m20_
  • float m01_
  • float m11_
  • float m21_
  • float m02_
  • float m12_
  • float m22_

void Set ( float v ) #

Sets the value using the specified argument(s).

Arguments

  • float v - A float value to be used.

void Set ( float[] m ) #

Sets the value using the specified argument(s).

Arguments

  • float[] m - Source matrix.

void Set ( mat3 m ) #

Sets the value using the specified argument(s).

Arguments

  • mat3 m - Source matrix.

void Set ( mat2 m ) #

Sets the value using the specified argument(s).

Arguments

  • mat2 m - Source matrix.

void Set ( mat4 m ) #

Sets the value using the specified argument(s).

Arguments

  • mat4 m - Source matrix.

void Set ( dmat4 m ) #

Sets the value using the specified argument(s).

Arguments

void Set ( vec3 col0, vec3 col1, vec3 col2 ) #

Sets the value using the specified argument(s).

Arguments

  • vec3 col0 - First column.
  • vec3 col1 - Second column.
  • vec3 col2 - Third column.

void Set ( quat q ) #

Sets the value using the specified argument(s).

Arguments

  • quat q - Source quaternion.

void SetRow ( int row, vec3 v ) #

Arguments

  • int row - Row index.
  • vec3 v - Source vector.

vec3 GetRow ( int row ) #

Arguments

  • int row - Row index.

Return value

Return value.

void SetColumn ( int column, vec3 v ) #

Arguments

  • int column - Column index.
  • vec3 v - Source vector.

vec3 GetColumn ( int column ) #

Arguments

  • int column - Column index.

Return value

Return value.

float Get ( int row, int column ) #

Arguments

  • int row - Row index.
  • int column - Column index.

Return value

Resulting float value.

float Set ( int row, int column, float v ) #

Sets the value using the specified argument(s).

Arguments

  • int row - Row index.
  • int column - Column index.
  • float v - A float value to be used.

Return value

Resulting float value.

void Clear ( ) #

Clears the value by setting all components/elements to 0.

void SetZero ( ) #

void SetIdentity ( ) #

void SetSkewSymmetric ( vec3 v ) #

Arguments

  • vec3 v - Source vector.

void SetRotate ( vec3 axis, float angle ) #

Arguments

  • vec3 axis - Axis of rotation.
  • float angle - Angle, in degrees.

void SetRotateX ( float angle ) #

Arguments

  • float angle - Angle, in degrees.

void SetRotateY ( float angle ) #

Arguments

  • float angle - Angle, in degrees.

void SetRotateZ ( float angle ) #

Arguments

  • float angle - Angle, in degrees.

void SetScale ( vec3 v ) #

Arguments

  • vec3 v - Source vector.

string ToString ( ) #

Converts the current value to a string value.

Return value

Resulting string value.
Last update: 2021-06-16
Build: ()