载入中...
搜索中...
未找到
ForceMath.h
浏览该文件的文档.
13inline ForceVector add(ForceVector a, ForceVector b) { return {a.x + b.x, a.y + b.y, a.z + b.z}; }
static Diagnostic error(DiagnosticCode code, std::string message, std::string path={})
Construct an error diagnostic with the standard error severity.
Definition Diagnostic.cpp:21
static Result failure(Status status)
Construct a failed result from a structured status.
Definition Result.h:196
Definition ForceMath.h:7
ForceVector add(ForceVector a, ForceVector b)
Definition ForceMath.h:13
Result< ForceVector > checked(ForceVector value)
Definition ForceMath.h:21
@ InvalidArgument
Owning world-space SI vector; 2D uses XY with Z exactly zero.
Definition ForceModels.h:12