panda3d.core.ConfigVariableDouble

class ConfigVariableDouble

Bases: ConfigVariable

This is a convenience class to specialize ConfigVariable as a floating- point type.

Inheritance diagram

Inheritance diagram of ConfigVariableDouble

__init__(param0: ConfigVariableDouble) → None
__init__(name: str) → None
__init__(name: str, default_value: float, description: str, flags: int) → None
__init__(name: str, default_value: str, description: str, flags: int) → None
assign(value: float) → ConfigVariableDouble
Return type

ConfigVariableDouble

property default_value

Returns the variable’s default value.

Return type

float

getDefaultValue() → float

Returns the variable’s default value.

getValue() → float

Returns the variable’s value.

getWord(n: size_t) → float

Returns the variable’s nth value.

setValue(value: float) → None

Reassigns the variable’s local value.

setWord(n: size_t, value: float) → None

Reassigns the variable’s nth value. This makes a local copy of the variable’s overall value.

size() → size_t

Returns the number of unique words in the variable.

Return type

size_t

property value
Getter

Returns the variable’s value.

Setter

Reassigns the variable’s local value.

Return type

float