Trade-offs and warnings
Consult the linked header for this operation’s ownership, lifetime and failure behavior.
PSYQO SDK
constructor · 7 overloads
Declarations are extracted from the pinned headers. Examples and general guidance are generated sketches, not verified complete programs; consult the linked source and guides for the actual contract.
Constructs `psyqo::FixedPoint` for the fixed point module.
consteval FixedPoint(long double ld)Constructs `psyqo::FixedPoint` for the fixed point module.
| Parameter | Type | Meaning |
|---|---|---|
ld | long double | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/fixed-point.hh"
// Assume these named values have been initialized with valid data:
// long double ld
psyqo::FixedPoint value(ld);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/fixed-point.hh:163
constexpr FixedPoint() : value(0)Constructs `psyqo::FixedPoint` for the fixed point module.
This overload takes no parameters.
Returns: Nothing (void).
#include "psyqo/fixed-point.hh"
psyqo::FixedPoint value();Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/fixed-point.hh:170
constexpr FixedPoint(FixedPoint&&) = defaultConstructs `psyqo::FixedPoint` for the fixed point module.
| Parameter | Type | Meaning |
|---|---|---|
arg1 | FixedPoint<precisionBits, T, Scale> && | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/fixed-point.hh"
// Assume these named values have been initialized with valid data:
// FixedPoint<precisionBits, T, Scale> && arg1
psyqo::FixedPoint value(arg1);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/fixed-point.hh:172
constexpr FixedPoint(T raw, Raw) : value(raw)Constructs `psyqo::FixedPoint` for the fixed point module.
| Parameter | Type | Meaning |
|---|---|---|
raw | T | Not documented; consult the linked header. |
arg2 | Raw | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/fixed-point.hh"
// Assume these named values have been initialized with valid data:
// T raw
// Raw arg2
psyqo::FixedPoint value(raw, arg2);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/fixed-point.hh:176
constexpr FixedPoint(const FixedPoint&) = defaultConstructs `psyqo::FixedPoint` for the fixed point module.
| Parameter | Type | Meaning |
|---|---|---|
arg1 | const FixedPoint<precisionBits, T, Scale> & | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/fixed-point.hh"
// Assume these named values have been initialized with valid data:
// const FixedPoint<precisionBits, T, Scale> & arg1
psyqo::FixedPoint value(arg1);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/fixed-point.hh:171
explicit constexpr FixedPoint(T integer, T fraction) : value(integer * scale + fraction)Constructs a fixed point number from an integer and a fraction. Specifying a fraction different from 0 when the scale is not a power of 2 is undefined behavior.
| Parameter | Type | Meaning |
|---|---|---|
integer | T | Not documented; consult the linked header. |
fraction | T | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/fixed-point.hh"
// Assume these named values have been initialized with valid data:
// T integer
// T fraction
psyqo::FixedPoint value(integer, fraction);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/fixed-point.hh:137
template <unsigned otherPrecisionBits = 12, std::integral U = int32_t> explicit FixedPoint(FixedPoint<otherPrecisionBits, U> other)Construct a new Fixed Point number from a different fixed point number.
| Parameter | Type | Meaning |
|---|---|---|
other | FixedPoint<otherPrecisionBits, U> | Not documented; consult the linked header. |
Returns: Nothing (void).
#include "psyqo/fixed-point.hh"
// Replace these template arguments with types or values accepted by the declaration:
// otherPrecisionBits, U
// Assume these named values have been initialized with valid data:
// FixedPoint<otherPrecisionBits, U> other
psyqo::FixedPoint& object = /* obtain a valid instance */;
object.FixedPoint<precisionBits, T, Scale><otherPrecisionBits, U>(other);Consult the linked header for this operation’s ownership, lifetime and failure behavior.
Declared in https://github.com/epokengine/nugget/blob/4a01183295182b8e7702c908e1efaaa8f4538ffd/psyqo/fixed-point.hh:183
absPerforms `abs` as part of the fixed point module.MethodceilReturns the ceiling of the fixed point number.Function templatefloorReturns the floor of the fixed point number.Function templateintegerReturns the integer part of the fixed point number.Function templateoperator-Performs `operator -` as part of the fixed point module.Methodoperator--Performs `operator --` as part of the fixed point module.Methodoperator!Performs `operator !` as part of the fixed point module.Methodoperator*Performs `operator *` as part of the fixed point module.Methodoperator*=Performs `operator *=` as part of the fixed point module.Methodoperator+Performs `operator +` as part of the fixed point module.Methodoperator++Performs `operator ++` as part of the fixed point module.Methodoperator+=Performs `operator +=` as part of the fixed point module.Method