matrix.h

来自「robocuo相关资料robocuo相关资料」· C头文件 代码 · 共 45 行

H
45
字号
#ifndef __Matrix1_H#define __Matrix1_H#include <stdio.h>#include <string>using namespace std;struct Vector2d;struct Vector3d;struct Matrix{	Matrix();	explicit Matrix( const Vector2d & );	explicit Matrix( const Vector3d & );	Vector2d getVector2d();	Vector3d getVector3d();	Matrix operator*( const Matrix & ) const;	Vector3d operator*( const Vector3d & ) const;	Matrix operator-() const;	static Matrix transferX( double );	static Matrix transferY( double );	static Matrix transferZ( double );	static Matrix translate( double, double, double );	static Matrix rotateX( double );	static Matrix rotateY( double );	static Matrix rotateZ( double );	static Matrix rotate_arbitrary_axis( Vector3d, double );	void swap_col( int, int );	double factor( int, int ) const;	Matrix cofactors() const;	Matrix transport() const;	double determinant() const;	void print();	double m[4][4];};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?