Up to date

This page is up to date for Godot `4.2`. If you still find outdated information, please open an issue.

# Basis¶

## 属性¶

 Vector3 x `Vector3(1, 0, 0)` Vector3 y `Vector3(0, 1, 0)` Vector3 z `Vector3(0, 0, 1)`

## 构造函数¶

 Basis Basis ( ) Basis Basis ( Basis from ) Basis Basis ( Vector3 axis, float angle ) Basis Basis ( Quaternion from ) Basis Basis ( Vector3 x_axis, Vector3 y_axis, Vector3 z_axis )

## 方法¶

 float determinant ( ) const Basis from_euler ( Vector3 euler, int order=2 ) static Basis from_scale ( Vector3 scale ) static Vector3 get_euler ( int order=2 ) const Quaternion get_rotation_quaternion ( ) const Vector3 get_scale ( ) const Basis inverse ( ) const bool is_conformal ( ) const bool is_equal_approx ( Basis b ) const bool is_finite ( ) const Basis looking_at ( Vector3 target, Vector3 up=Vector3(0, 1, 0), bool use_model_front=false ) static Basis orthonormalized ( ) const Basis rotated ( Vector3 axis, float angle ) const Basis scaled ( Vector3 scale ) const Basis slerp ( Basis to, float weight ) const float tdotx ( Vector3 with ) const float tdoty ( Vector3 with ) const float tdotz ( Vector3 with ) const Basis transposed ( ) const

## 操作符¶

 bool operator != ( Basis right ) Basis operator * ( Basis right ) Vector3 operator * ( Vector3 right ) Basis operator * ( float right ) Basis operator * ( int right ) bool operator == ( Basis right ) Vector3 operator [] ( int index )

## 常量¶

IDENTITY = `Basis(1, 0, 0, 0, 1, 0, 0, 0, 1)`

FLIP_X = `Basis(-1, 0, 0, 0, 1, 0, 0, 0, 1)`

FLIP_Y = `Basis(1, 0, 0, 0, -1, 0, 0, 0, 1)`

FLIP_Z = `Basis(1, 0, 0, 0, 1, 0, 0, 0, -1)`

## 属性说明¶

Vector3 x = `Vector3(1, 0, 0)`

Vector3 y = `Vector3(0, 1, 0)`

Vector3 z = `Vector3(0, 0, 1)`

## 构造函数说明¶

Basis Basis ( )

Basis Basis ( Basis from )

Basis Basis ( Vector3 axis, float angle )

Basis Basis ( Quaternion from )

Basis Basis ( Vector3 x_axis, Vector3 y_axis, Vector3 z_axis )

## 方法说明¶

float determinant ( ) const

Basis from_euler ( Vector3 euler, int order=2 ) static

Basis from_scale ( Vector3 scale ) static

Vector3 get_euler ( int order=2 ) const

Quaternion get_rotation_quaternion ( ) const

Vector3 get_scale ( ) const

Basis inverse ( ) const

bool is_conformal ( ) const

bool is_equal_approx ( Basis b ) const

bool is_finite ( ) const

Basis looking_at ( Vector3 target, Vector3 up=Vector3(0, 1, 0), bool use_model_front=false ) static

Basis orthonormalized ( ) const

Basis rotated ( Vector3 axis, float angle ) const

Basis scaled ( Vector3 scale ) const

Basis slerp ( Basis to, float weight ) const

float tdotx ( Vector3 with ) const

float tdoty ( Vector3 with ) const

float tdotz ( Vector3 with ) const

Basis transposed ( ) const

## 操作符说明¶

bool operator != ( Basis right )

Basis operator * ( Basis right )

Vector3 operator * ( Vector3 right )

Basis operator * ( float right )

Basis operator * ( int right )

bool operator == ( Basis right )

Vector3 operator [] ( int index )