Assimp v5.2.2 (January 2022)
The Asset-Importer-Lib API documentation.
|
Defines the C-API to the Open Asset Import Library. More...
Classes | |
struct | aiLogStream |
C-API: Represents a log stream. More... | |
struct | aiPropertyStore |
C-API: Represents an opaque set of settings to be used during importing. More... | |
Macros | |
#define | AI_ASSIMP_H_INC |
#define | AI_FALSE 0 |
#define | AI_TRUE 1 |
Typedefs | |
typedef int | aiBool |
Our own C boolean type. More... | |
typedef void(* | aiLogStreamCallback) (const char *, char *) |
Functions | |
ASSIMP_API const C_STRUCT aiScene * | aiApplyPostProcessing (const C_STRUCT aiScene *pScene, unsigned int pFlags) |
Apply post-processing to an already-imported scene. More... | |
ASSIMP_API void | aiAttachLogStream (const C_STRUCT aiLogStream *stream) |
Attach a custom log stream to the libraries' logging system. More... | |
ASSIMP_API C_STRUCT aiPropertyStore * | aiCreatePropertyStore (void) |
Create an empty property store. More... | |
ASSIMP_API void | aiCreateQuaternionFromMatrix (C_STRUCT aiQuaternion *quat, const C_STRUCT aiMatrix3x3 *mat) |
Construct a quaternion from a 3x3 rotation matrix. More... | |
ASSIMP_API void | aiDecomposeMatrix (const C_STRUCT aiMatrix4x4 *mat, C_STRUCT aiVector3D *scaling, C_STRUCT aiQuaternion *rotation, C_STRUCT aiVector3D *position) |
Decompose a transformation matrix into its rotational, translational and scaling components. More... | |
ASSIMP_API void | aiDetachAllLogStreams (void) |
Detach all active log streams from the libraries' logging system. More... | |
ASSIMP_API C_ENUM aiReturn | aiDetachLogStream (const C_STRUCT aiLogStream *stream) |
Detach a custom log stream from the libraries' logging system. More... | |
ASSIMP_API void | aiEnableVerboseLogging (aiBool d) |
Enable verbose logging. More... | |
ASSIMP_API const char * | aiGetErrorString (void) |
Returns the error text of the last failed import process. More... | |
ASSIMP_API void | aiGetExtensionList (C_STRUCT aiString *szOut) |
Get a list of all file extensions supported by ASSIMP. More... | |
ASSIMP_API size_t | aiGetImportFormatCount (void) |
Returns the number of import file formats available in the current Assimp build. More... | |
ASSIMP_API const C_STRUCT aiImporterDesc * | aiGetImportFormatDescription (size_t pIndex) |
Returns a description of the nth import file format. More... | |
ASSIMP_API void | aiGetMemoryRequirements (const C_STRUCT aiScene *pIn, C_STRUCT aiMemoryInfo *in) |
Get the approximated storage required by an imported asset. More... | |
ASSIMP_API C_STRUCT aiLogStream | aiGetPredefinedLogStream (C_ENUM aiDefaultLogStream pStreams, const char *file) |
Get one of the predefine log streams. More... | |
ASSIMP_API void | aiIdentityMatrix3 (C_STRUCT aiMatrix3x3 *mat) |
Get a 3x3 identity matrix. More... | |
ASSIMP_API void | aiIdentityMatrix4 (C_STRUCT aiMatrix4x4 *mat) |
Get a 4x4 identity matrix. More... | |
ASSIMP_API const C_STRUCT aiScene * | aiImportFile (const char *pFile, unsigned int pFlags) |
Reads the given file and returns its content. More... | |
ASSIMP_API const C_STRUCT aiScene * | aiImportFileEx (const char *pFile, unsigned int pFlags, C_STRUCT aiFileIO *pFS) |
Reads the given file using user-defined I/O functions and returns its content. More... | |
ASSIMP_API const C_STRUCT aiScene * | aiImportFileExWithProperties (const char *pFile, unsigned int pFlags, C_STRUCT aiFileIO *pFS, const C_STRUCT aiPropertyStore *pProps) |
Same as aiImportFileEx, but adds an extra parameter containing importer settings. More... | |
ASSIMP_API const C_STRUCT aiScene * | aiImportFileFromMemory (const char *pBuffer, unsigned int pLength, unsigned int pFlags, const char *pHint) |
Reads the given file from a given memory buffer,. More... | |
ASSIMP_API const C_STRUCT aiScene * | aiImportFileFromMemoryWithProperties (const char *pBuffer, unsigned int pLength, unsigned int pFlags, const char *pHint, const C_STRUCT aiPropertyStore *pProps) |
Same as aiImportFileFromMemory, but adds an extra parameter containing importer settings. More... | |
ASSIMP_API aiBool | aiIsExtensionSupported (const char *szExtension) |
Returns whether a given file extension is supported by ASSIMP. More... | |
ASSIMP_API int | aiMatrix3AreEqual (const C_STRUCT aiMatrix3x3 *a, const C_STRUCT aiMatrix3x3 *b) |
Check if 3x3 matrices are equal. More... | |
ASSIMP_API int | aiMatrix3AreEqualEpsilon (const C_STRUCT aiMatrix3x3 *a, const C_STRUCT aiMatrix3x3 *b, const float epsilon) |
Check if 3x3 matrices are equal. More... | |
ASSIMP_API float | aiMatrix3Determinant (const C_STRUCT aiMatrix3x3 *mat) |
Get the determinant of a 3x3 matrix. More... | |
ASSIMP_API void | aiMatrix3FromMatrix4 (C_STRUCT aiMatrix3x3 *dst, const C_STRUCT aiMatrix4x4 *mat) |
Construct a 3x3 matrix from a 4x4 matrix. More... | |
ASSIMP_API void | aiMatrix3FromQuaternion (C_STRUCT aiMatrix3x3 *mat, const C_STRUCT aiQuaternion *q) |
Construct a 3x3 matrix from a quaternion. More... | |
ASSIMP_API void | aiMatrix3FromRotationAroundAxis (C_STRUCT aiMatrix3x3 *mat, const C_STRUCT aiVector3D *axis, const float angle) |
Returns a 3x3 rotation matrix for a rotation around an arbitrary axis. More... | |
ASSIMP_API void | aiMatrix3FromTo (C_STRUCT aiMatrix3x3 *mat, const C_STRUCT aiVector3D *from, const C_STRUCT aiVector3D *to) |
Create a 3x3 matrix that rotates one vector to another vector. More... | |
ASSIMP_API void | aiMatrix3Inverse (C_STRUCT aiMatrix3x3 *mat) |
Invert a 3x3 matrix. More... | |
ASSIMP_API void | aiMatrix3RotationZ (C_STRUCT aiMatrix3x3 *mat, const float angle) |
Get a 3x3 rotation matrix around the Z axis. More... | |
ASSIMP_API void | aiMatrix3Translation (C_STRUCT aiMatrix3x3 *mat, const C_STRUCT aiVector2D *translation) |
Get a 3x3 translation matrix. More... | |
ASSIMP_API void | aiMatrix4Add (C_STRUCT aiMatrix4x4 *dst, const C_STRUCT aiMatrix4x4 *src) |
Add 4x4 matrices. More... | |
ASSIMP_API int | aiMatrix4AreEqual (const C_STRUCT aiMatrix4x4 *a, const C_STRUCT aiMatrix4x4 *b) |
Check if 4x4 matrices are equal. More... | |
ASSIMP_API int | aiMatrix4AreEqualEpsilon (const C_STRUCT aiMatrix4x4 *a, const C_STRUCT aiMatrix4x4 *b, const float epsilon) |
Check if 4x4 matrices are equal. More... | |
ASSIMP_API void | aiMatrix4DecomposeIntoScalingAxisAnglePosition (const C_STRUCT aiMatrix4x4 *mat, C_STRUCT aiVector3D *scaling, C_STRUCT aiVector3D *axis, ai_real *angle, C_STRUCT aiVector3D *position) |
Decompose a transformation matrix into its scaling, rotational split into an axis and rotational angle, and it's translational components. More... | |
ASSIMP_API void | aiMatrix4DecomposeIntoScalingEulerAnglesPosition (const C_STRUCT aiMatrix4x4 *mat, C_STRUCT aiVector3D *scaling, C_STRUCT aiVector3D *rotation, C_STRUCT aiVector3D *position) |
Decompose a transformation matrix into its scaling, rotational as euler angles, and translational components. More... | |
ASSIMP_API void | aiMatrix4DecomposeNoScaling (const C_STRUCT aiMatrix4x4 *mat, C_STRUCT aiQuaternion *rotation, C_STRUCT aiVector3D *position) |
Decompose a transformation matrix into its rotational and translational components. More... | |
ASSIMP_API float | aiMatrix4Determinant (const C_STRUCT aiMatrix4x4 *mat) |
Get the determinant of a 4x4 matrix. More... | |
ASSIMP_API void | aiMatrix4FromEulerAngles (C_STRUCT aiMatrix4x4 *mat, float x, float y, float z) |
Creates a 4x4 matrix from a set of euler angles. More... | |
ASSIMP_API void | aiMatrix4FromMatrix3 (C_STRUCT aiMatrix4x4 *dst, const C_STRUCT aiMatrix3x3 *mat) |
Construct a 4x4 matrix from a 3x3 matrix. More... | |
ASSIMP_API void | aiMatrix4FromRotationAroundAxis (C_STRUCT aiMatrix4x4 *mat, const C_STRUCT aiVector3D *axis, const float angle) |
Returns a 4x4 rotation matrix for a rotation around an arbitrary axis. More... | |
ASSIMP_API void | aiMatrix4FromScalingQuaternionPosition (C_STRUCT aiMatrix4x4 *mat, const C_STRUCT aiVector3D *scaling, const C_STRUCT aiQuaternion *rotation, const C_STRUCT aiVector3D *position) |
Construct a 4x4 matrix from scaling, rotation and position. More... | |
ASSIMP_API void | aiMatrix4FromTo (C_STRUCT aiMatrix4x4 *mat, const C_STRUCT aiVector3D *from, const C_STRUCT aiVector3D *to) |
Create a 4x4 matrix that rotates one vector to another vector. More... | |
ASSIMP_API void | aiMatrix4Inverse (C_STRUCT aiMatrix4x4 *mat) |
Invert a 4x4 matrix. More... | |
ASSIMP_API int | aiMatrix4IsIdentity (const C_STRUCT aiMatrix4x4 *mat) |
Returns true of the matrix is the identity matrix. More... | |
ASSIMP_API void | aiMatrix4RotationX (C_STRUCT aiMatrix4x4 *mat, const float angle) |
Get a 4x4 rotation matrix around the X axis. More... | |
ASSIMP_API void | aiMatrix4RotationY (C_STRUCT aiMatrix4x4 *mat, const float angle) |
Get a 4x4 rotation matrix around the Y axis. More... | |
ASSIMP_API void | aiMatrix4RotationZ (C_STRUCT aiMatrix4x4 *mat, const float angle) |
Get a 4x4 rotation matrix around the Z axis. More... | |
ASSIMP_API void | aiMatrix4Scaling (C_STRUCT aiMatrix4x4 *mat, const C_STRUCT aiVector3D *scaling) |
Get a 4x4 scaling matrix. More... | |
ASSIMP_API void | aiMatrix4Translation (C_STRUCT aiMatrix4x4 *mat, const C_STRUCT aiVector3D *translation) |
Get a 4x4 translation matrix. More... | |
ASSIMP_API void | aiMultiplyMatrix3 (C_STRUCT aiMatrix3x3 *dst, const C_STRUCT aiMatrix3x3 *src) |
Multiply two 3x3 matrices. More... | |
ASSIMP_API void | aiMultiplyMatrix4 (C_STRUCT aiMatrix4x4 *dst, const C_STRUCT aiMatrix4x4 *src) |
Multiply two 4x4 matrices. More... | |
ASSIMP_API int | aiQuaternionAreEqual (const C_STRUCT aiQuaternion *a, const C_STRUCT aiQuaternion *b) |
Check if quaternions are equal. More... | |
ASSIMP_API int | aiQuaternionAreEqualEpsilon (const C_STRUCT aiQuaternion *a, const C_STRUCT aiQuaternion *b, const float epsilon) |
Check if quaternions are equal using epsilon. More... | |
ASSIMP_API void | aiQuaternionConjugate (C_STRUCT aiQuaternion *q) |
Compute quaternion conjugate. More... | |
ASSIMP_API void | aiQuaternionFromAxisAngle (C_STRUCT aiQuaternion *q, const C_STRUCT aiVector3D *axis, const float angle) |
Create a Quaternion from an axis angle pair. More... | |
ASSIMP_API void | aiQuaternionFromEulerAngles (C_STRUCT aiQuaternion *q, float x, float y, float z) |
Create a Quaternion from euler angles. More... | |
ASSIMP_API void | aiQuaternionFromNormalizedQuaternion (C_STRUCT aiQuaternion *q, const C_STRUCT aiVector3D *normalized) |
Create a Quaternion from a normalized quaternion stored in a 3D vector. More... | |
ASSIMP_API void | aiQuaternionInterpolate (C_STRUCT aiQuaternion *dst, const C_STRUCT aiQuaternion *start, const C_STRUCT aiQuaternion *end, const float factor) |
Performs a spherical interpolation between two quaternions. More... | |
ASSIMP_API void | aiQuaternionMultiply (C_STRUCT aiQuaternion *dst, const C_STRUCT aiQuaternion *q) |
Multiply quaternions. More... | |
ASSIMP_API void | aiQuaternionNormalize (C_STRUCT aiQuaternion *q) |
Normalize a quaternion. More... | |
ASSIMP_API void | aiReleaseImport (const C_STRUCT aiScene *pScene) |
Releases all resources associated with the given import process. More... | |
ASSIMP_API void | aiReleasePropertyStore (C_STRUCT aiPropertyStore *p) |
Delete a property store. More... | |
ASSIMP_API void | aiSetImportPropertyFloat (C_STRUCT aiPropertyStore *store, const char *szName, ai_real value) |
Set a floating-point property. More... | |
ASSIMP_API void | aiSetImportPropertyInteger (C_STRUCT aiPropertyStore *store, const char *szName, int value) |
Set an integer property. More... | |
ASSIMP_API void | aiSetImportPropertyMatrix (C_STRUCT aiPropertyStore *store, const char *szName, const C_STRUCT aiMatrix4x4 *mat) |
Set a matrix property. More... | |
ASSIMP_API void | aiSetImportPropertyString (C_STRUCT aiPropertyStore *store, const char *szName, const C_STRUCT aiString *st) |
Set a string property. More... | |
ASSIMP_API void | aiTransformVecByMatrix3 (C_STRUCT aiVector3D *vec, const C_STRUCT aiMatrix3x3 *mat) |
Transform a vector by a 3x3 matrix. More... | |
ASSIMP_API void | aiTransformVecByMatrix4 (C_STRUCT aiVector3D *vec, const C_STRUCT aiMatrix4x4 *mat) |
Transform a vector by a 4x4 matrix. More... | |
ASSIMP_API void | aiTransposeMatrix3 (C_STRUCT aiMatrix3x3 *mat) |
Transpose a 3x3 matrix. More... | |
ASSIMP_API void | aiTransposeMatrix4 (C_STRUCT aiMatrix4x4 *mat) |
Transpose a 4x4 matrix. More... | |
ASSIMP_API void | aiVector2Add (C_STRUCT aiVector2D *dst, const C_STRUCT aiVector2D *src) |
Add 2D vectors. More... | |
ASSIMP_API int | aiVector2AreEqual (const C_STRUCT aiVector2D *a, const C_STRUCT aiVector2D *b) |
Check if 2D vectors are equal. More... | |
ASSIMP_API int | aiVector2AreEqualEpsilon (const C_STRUCT aiVector2D *a, const C_STRUCT aiVector2D *b, const float epsilon) |
Check if 2D vectors are equal using epsilon. More... | |
ASSIMP_API void | aiVector2DivideByScalar (C_STRUCT aiVector2D *dst, const float s) |
Divide a 2D vector by a scalar. More... | |
ASSIMP_API void | aiVector2DivideByVector (C_STRUCT aiVector2D *dst, C_STRUCT aiVector2D *v) |
Divide each component of a 2D vector by the components of another vector. More... | |
ASSIMP_API float | aiVector2DotProduct (const C_STRUCT aiVector2D *a, const C_STRUCT aiVector2D *b) |
Get the dot product of 2D vectors. More... | |
ASSIMP_API float | aiVector2Length (const C_STRUCT aiVector2D *v) |
Get the length of a 2D vector. More... | |
ASSIMP_API void | aiVector2Negate (C_STRUCT aiVector2D *dst) |
Negate a 2D vector. More... | |
ASSIMP_API void | aiVector2Normalize (C_STRUCT aiVector2D *v) |
Normalize a 2D vector. More... | |
ASSIMP_API void | aiVector2Scale (C_STRUCT aiVector2D *dst, const float s) |
Multiply a 2D vector by a scalar. More... | |
ASSIMP_API float | aiVector2SquareLength (const C_STRUCT aiVector2D *v) |
Get the squared length of a 2D vector. More... | |
ASSIMP_API void | aiVector2Subtract (C_STRUCT aiVector2D *dst, const C_STRUCT aiVector2D *src) |
Subtract 2D vectors. More... | |
ASSIMP_API void | aiVector2SymMul (C_STRUCT aiVector2D *dst, const C_STRUCT aiVector2D *other) |
Multiply each component of a 2D vector with the components of another vector. More... | |
ASSIMP_API void | aiVector3Add (C_STRUCT aiVector3D *dst, const C_STRUCT aiVector3D *src) |
Add 3D vectors. More... | |
ASSIMP_API int | aiVector3AreEqual (const C_STRUCT aiVector3D *a, const C_STRUCT aiVector3D *b) |
Check if 3D vectors are equal. More... | |
ASSIMP_API int | aiVector3AreEqualEpsilon (const C_STRUCT aiVector3D *a, const C_STRUCT aiVector3D *b, const float epsilon) |
Check if 3D vectors are equal using epsilon. More... | |
ASSIMP_API void | aiVector3CrossProduct (C_STRUCT aiVector3D *dst, const C_STRUCT aiVector3D *a, const C_STRUCT aiVector3D *b) |
Get cross product of 3D vectors. More... | |
ASSIMP_API void | aiVector3DivideByScalar (C_STRUCT aiVector3D *dst, const float s) |
Divide a 3D vector by a scalar. More... | |
ASSIMP_API void | aiVector3DivideByVector (C_STRUCT aiVector3D *dst, C_STRUCT aiVector3D *v) |
Divide each component of a 3D vector by the components of another vector. More... | |
ASSIMP_API float | aiVector3DotProduct (const C_STRUCT aiVector3D *a, const C_STRUCT aiVector3D *b) |
Get the dot product of 3D vectors. More... | |
ASSIMP_API float | aiVector3Length (const C_STRUCT aiVector3D *v) |
Get the length of a 3D vector. More... | |
ASSIMP_API int | aiVector3LessThan (const C_STRUCT aiVector3D *a, const C_STRUCT aiVector3D *b) |
Check if vector a is less than vector b . More... | |
ASSIMP_API void | aiVector3Negate (C_STRUCT aiVector3D *dst) |
Negate a 3D vector. More... | |
ASSIMP_API void | aiVector3Normalize (C_STRUCT aiVector3D *v) |
Normalize a 3D vector. More... | |
ASSIMP_API void | aiVector3NormalizeSafe (C_STRUCT aiVector3D *v) |
Check for division by zero and normalize a 3D vector. More... | |
ASSIMP_API void | aiVector3RotateByQuaternion (C_STRUCT aiVector3D *v, const C_STRUCT aiQuaternion *q) |
Rotate a 3D vector by a quaternion. More... | |
ASSIMP_API void | aiVector3Scale (C_STRUCT aiVector3D *dst, const float s) |
Multiply a 3D vector by a scalar. More... | |
ASSIMP_API float | aiVector3SquareLength (const C_STRUCT aiVector3D *v) |
Get the squared length of a 3D vector. More... | |
ASSIMP_API void | aiVector3Subtract (C_STRUCT aiVector3D *dst, const C_STRUCT aiVector3D *src) |
Subtract 3D vectors. More... | |
ASSIMP_API void | aiVector3SymMul (C_STRUCT aiVector3D *dst, const C_STRUCT aiVector3D *other) |
Multiply each component of a 3D vector with the components of another vector. More... | |
Defines the C-API to the Open Asset Import Library.
#define AI_ASSIMP_H_INC |
#define AI_FALSE 0 |
#define AI_TRUE 1 |
typedef int aiBool |
Our own C boolean type.
typedef void(* aiLogStreamCallback) (const char *, char *) |
ASSIMP_API const C_STRUCT aiScene * aiApplyPostProcessing | ( | const C_STRUCT aiScene * | pScene, |
unsigned int | pFlags | ||
) |
Apply post-processing to an already-imported scene.
This is strictly equivalent to calling aiImportFile()/aiImportFileEx with the same flags. However, you can use this separate function to inspect the imported scene first to fine-tune your post-processing setup.
pScene | Scene to work on. |
pFlags | Provide a bitwise combination of the aiPostProcessSteps flags. |
ASSIMP_API void aiAttachLogStream | ( | const C_STRUCT aiLogStream * | stream | ) |
Attach a custom log stream to the libraries' logging system.
Attaching a log stream can slightly reduce Assimp's overall import performance. Multiple log-streams can be attached.
stream | Describes the new log stream. |
ASSIMP_API C_STRUCT aiPropertyStore * aiCreatePropertyStore | ( | void | ) |
Create an empty property store.
Property stores are used to collect import settings.
ASSIMP_API void aiCreateQuaternionFromMatrix | ( | C_STRUCT aiQuaternion * | quat, |
const C_STRUCT aiMatrix3x3 * | mat | ||
) |
Construct a quaternion from a 3x3 rotation matrix.
quat | Receives the output quaternion. |
mat | Matrix to 'quaternionize'. |
ASSIMP_API void aiDecomposeMatrix | ( | const C_STRUCT aiMatrix4x4 * | mat, |
C_STRUCT aiVector3D * | scaling, | ||
C_STRUCT aiQuaternion * | rotation, | ||
C_STRUCT aiVector3D * | position | ||
) |
Decompose a transformation matrix into its rotational, translational and scaling components.
mat | Matrix to decompose |
scaling | Receives the scaling component |
rotation | Receives the rotational component |
position | Receives the translational component. |
ASSIMP_API void aiDetachAllLogStreams | ( | void | ) |
Detach all active log streams from the libraries' logging system.
This ensures that the logging system is terminated properly and all resources allocated by it are actually freed. If you attached a stream, don't forget to detach it again.
ASSIMP_API C_ENUM aiReturn aiDetachLogStream | ( | const C_STRUCT aiLogStream * | stream | ) |
Detach a custom log stream from the libraries' logging system.
This is the counterpart of aiAttachLogStream. If you attached a stream, don't forget to detach it again.
stream | The log stream to be detached. |
ASSIMP_API void aiEnableVerboseLogging | ( | aiBool | d | ) |
Enable verbose logging.
Verbose logging includes debug-related stuff and detailed import statistics. This can have severe impact on import performance and memory consumption. However, it might be useful to find out why a file didn't read correctly.
d | AI_TRUE or AI_FALSE, your decision. |
ASSIMP_API const char * aiGetErrorString | ( | void | ) |
Returns the error text of the last failed import process.
ASSIMP_API void aiGetExtensionList | ( | C_STRUCT aiString * | szOut | ) |
Get a list of all file extensions supported by ASSIMP.
If a file extension is contained in the list this does, of course, not mean that ASSIMP is able to load all files with this extension.
szOut | String to receive the extension list. Format of the list: "*.3ds;*.obj;*.dae". NULL is not a valid parameter. |
ASSIMP_API size_t aiGetImportFormatCount | ( | void | ) |
Returns the number of import file formats available in the current Assimp build.
Use aiGetImportFormatDescription() to retrieve infos of a specific import format.
ASSIMP_API const C_STRUCT aiImporterDesc * aiGetImportFormatDescription | ( | size_t | pIndex | ) |
Returns a description of the nth import file format.
Use aiGetImportFormatCount() to learn how many import formats are supported.
pIndex | Index of the import format to retrieve information for. Valid range is 0 to aiGetImportFormatCount() |
ASSIMP_API void aiGetMemoryRequirements | ( | const C_STRUCT aiScene * | pIn, |
C_STRUCT aiMemoryInfo * | in | ||
) |
Get the approximated storage required by an imported asset.
pIn | Input asset. |
in | Data structure to be filled. |
ASSIMP_API C_STRUCT aiLogStream aiGetPredefinedLogStream | ( | C_ENUM aiDefaultLogStream | pStreams, |
const char * | file | ||
) |
Get one of the predefine log streams.
This is the quick'n'easy solution to access Assimp's log system. Attaching a log stream can slightly reduce Assimp's overall import performance.
Usage is rather simple (this will stream the log to a file, named log.txt, and the stdout stream of the process:
pStreams | One of the aiDefaultLogStream enumerated values. |
file | Solely for the aiDefaultLogStream_FILE flag: specifies the file to write to. Pass NULL for all other flags. |
ASSIMP_API void aiIdentityMatrix3 | ( | C_STRUCT aiMatrix3x3 * | mat | ) |
Get a 3x3 identity matrix.
mat | Matrix to receive its personal identity |
ASSIMP_API void aiIdentityMatrix4 | ( | C_STRUCT aiMatrix4x4 * | mat | ) |
Get a 4x4 identity matrix.
mat | Matrix to receive its personal identity |
ASSIMP_API const C_STRUCT aiScene * aiImportFile | ( | const char * | pFile, |
unsigned int | pFlags | ||
) |
Reads the given file and returns its content.
If the call succeeds, the imported data is returned in an aiScene structure. The data is intended to be read-only, it stays property of the ASSIMP library and will be stable until aiReleaseImport() is called. After you're done with it, call aiReleaseImport() to free the resources associated with this file. If the import fails, NULL is returned instead. Call aiGetErrorString() to retrieve a human-readable error text.
pFile | Path and filename of the file to be imported, expected to be a null-terminated c-string. NULL is not a valid value. |
pFlags | Optional post processing steps to be executed after a successful import. Provide a bitwise combination of the aiPostProcessSteps flags. |
ASSIMP_API const C_STRUCT aiScene * aiImportFileEx | ( | const char * | pFile, |
unsigned int | pFlags, | ||
C_STRUCT aiFileIO * | pFS | ||
) |
Reads the given file using user-defined I/O functions and returns its content.
If the call succeeds, the imported data is returned in an aiScene structure. The data is intended to be read-only, it stays property of the ASSIMP library and will be stable until aiReleaseImport() is called. After you're done with it, call aiReleaseImport() to free the resources associated with this file. If the import fails, NULL is returned instead. Call aiGetErrorString() to retrieve a human-readable error text.
pFile | Path and filename of the file to be imported, expected to be a null-terminated c-string. NULL is not a valid value. |
pFlags | Optional post processing steps to be executed after a successful import. Provide a bitwise combination of the aiPostProcessSteps flags. |
pFS | aiFileIO structure. Will be used to open the model file itself and any other files the loader needs to open. Pass NULL to use the default implementation. |
ASSIMP_API const C_STRUCT aiScene * aiImportFileExWithProperties | ( | const char * | pFile, |
unsigned int | pFlags, | ||
C_STRUCT aiFileIO * | pFS, | ||
const C_STRUCT aiPropertyStore * | pProps | ||
) |
Same as aiImportFileEx, but adds an extra parameter containing importer settings.
pFile | Path and filename of the file to be imported, expected to be a null-terminated c-string. NULL is not a valid value. |
pFlags | Optional post processing steps to be executed after a successful import. Provide a bitwise combination of the aiPostProcessSteps flags. |
pFS | aiFileIO structure. Will be used to open the model file itself and any other files the loader needs to open. Pass NULL to use the default implementation. |
pProps | aiPropertyStore instance containing import settings. |
ASSIMP_API const C_STRUCT aiScene * aiImportFileFromMemory | ( | const char * | pBuffer, |
unsigned int | pLength, | ||
unsigned int | pFlags, | ||
const char * | pHint | ||
) |
Reads the given file from a given memory buffer,.
If the call succeeds, the contents of the file are returned as a pointer to an aiScene object. The returned data is intended to be read-only, the importer keeps ownership of the data and will destroy it upon destruction. If the import fails, NULL is returned. A human-readable error description can be retrieved by calling aiGetErrorString().
pBuffer | Pointer to the file data |
pLength | Length of pBuffer, in bytes |
pFlags | Optional post processing steps to be executed after a successful import. Provide a bitwise combination of the aiPostProcessSteps flags. If you wish to inspect the imported scene first in order to fine-tune your post-processing setup, consider to use aiApplyPostProcessing(). |
pHint | An additional hint to the library. If this is a non empty string, the library looks for a loader to support the file extension specified by pHint and passes the file to the first matching loader. If this loader is unable to completely the request, the library continues and tries to determine the file format on its own, a task that may or may not be successful. Check the return value, and you'll know ... |
ASSIMP_API const C_STRUCT aiScene * aiImportFileFromMemoryWithProperties | ( | const char * | pBuffer, |
unsigned int | pLength, | ||
unsigned int | pFlags, | ||
const char * | pHint, | ||
const C_STRUCT aiPropertyStore * | pProps | ||
) |
Same as aiImportFileFromMemory, but adds an extra parameter containing importer settings.
pBuffer | Pointer to the file data |
pLength | Length of pBuffer, in bytes |
pFlags | Optional post processing steps to be executed after a successful import. Provide a bitwise combination of the aiPostProcessSteps flags. If you wish to inspect the imported scene first in order to fine-tune your post-processing setup, consider to use aiApplyPostProcessing(). |
pHint | An additional hint to the library. If this is a non empty string, the library looks for a loader to support the file extension specified by pHint and passes the file to the first matching loader. If this loader is unable to completely the request, the library continues and tries to determine the file format on its own, a task that may or may not be successful. Check the return value, and you'll know ... |
pProps | aiPropertyStore instance containing import settings. |
ASSIMP_API aiBool aiIsExtensionSupported | ( | const char * | szExtension | ) |
Returns whether a given file extension is supported by ASSIMP.
szExtension | Extension for which the function queries support for. Must include a leading dot '.'. Example: ".3ds", ".md3" |
ASSIMP_API int aiMatrix3AreEqual | ( | const C_STRUCT aiMatrix3x3 * | a, |
const C_STRUCT aiMatrix3x3 * | b | ||
) |
Check if 3x3 matrices are equal.
a | First matrix to compare |
b | Second matrix to compare |
ASSIMP_API int aiMatrix3AreEqualEpsilon | ( | const C_STRUCT aiMatrix3x3 * | a, |
const C_STRUCT aiMatrix3x3 * | b, | ||
const float | epsilon | ||
) |
Check if 3x3 matrices are equal.
a | First matrix to compare |
b | Second matrix to compare |
epsilon | Epsilon |
ASSIMP_API float aiMatrix3Determinant | ( | const C_STRUCT aiMatrix3x3 * | mat | ) |
Get the determinant of a 3x3 matrix.
mat | Matrix to get the determinant from |
ASSIMP_API void aiMatrix3FromMatrix4 | ( | C_STRUCT aiMatrix3x3 * | dst, |
const C_STRUCT aiMatrix4x4 * | mat | ||
) |
Construct a 3x3 matrix from a 4x4 matrix.
dst | Receives the output matrix |
mat | The 4x4 matrix to use |
ASSIMP_API void aiMatrix3FromQuaternion | ( | C_STRUCT aiMatrix3x3 * | mat, |
const C_STRUCT aiQuaternion * | q | ||
) |
Construct a 3x3 matrix from a quaternion.
mat | Receives the output matrix |
q | The quaternion matrix to use |
ASSIMP_API void aiMatrix3FromRotationAroundAxis | ( | C_STRUCT aiMatrix3x3 * | mat, |
const C_STRUCT aiVector3D * | axis, | ||
const float | angle | ||
) |
Returns a 3x3 rotation matrix for a rotation around an arbitrary axis.
mat | Receives the output matrix |
axis | Rotation axis, should be a normalized vector |
angle | Rotation angle, in radians |
ASSIMP_API void aiMatrix3FromTo | ( | C_STRUCT aiMatrix3x3 * | mat, |
const C_STRUCT aiVector3D * | from, | ||
const C_STRUCT aiVector3D * | to | ||
) |
Create a 3x3 matrix that rotates one vector to another vector.
mat | Receives the output matrix |
from | Vector to rotate from |
to | Vector to rotate to |
ASSIMP_API void aiMatrix3Inverse | ( | C_STRUCT aiMatrix3x3 * | mat | ) |
Invert a 3x3 matrix.
mat | Matrix to invert |
ASSIMP_API void aiMatrix3RotationZ | ( | C_STRUCT aiMatrix3x3 * | mat, |
const float | angle | ||
) |
Get a 3x3 rotation matrix around the Z axis.
mat | Receives the output matrix |
angle | Rotation angle, in radians |
ASSIMP_API void aiMatrix3Translation | ( | C_STRUCT aiMatrix3x3 * | mat, |
const C_STRUCT aiVector2D * | translation | ||
) |
Get a 3x3 translation matrix.
mat | Receives the output matrix |
translation | The translation vector |
ASSIMP_API void aiMatrix4Add | ( | C_STRUCT aiMatrix4x4 * | dst, |
const C_STRUCT aiMatrix4x4 * | src | ||
) |
Add 4x4 matrices.
dst | First addend, receives result. |
src | Matrix to be added to 'dst'. |
ASSIMP_API int aiMatrix4AreEqual | ( | const C_STRUCT aiMatrix4x4 * | a, |
const C_STRUCT aiMatrix4x4 * | b | ||
) |
Check if 4x4 matrices are equal.
a | First matrix to compare |
b | Second matrix to compare |
ASSIMP_API int aiMatrix4AreEqualEpsilon | ( | const C_STRUCT aiMatrix4x4 * | a, |
const C_STRUCT aiMatrix4x4 * | b, | ||
const float | epsilon | ||
) |
Check if 4x4 matrices are equal.
a | First matrix to compare |
b | Second matrix to compare |
epsilon | Epsilon |
ASSIMP_API void aiMatrix4DecomposeIntoScalingAxisAnglePosition | ( | const C_STRUCT aiMatrix4x4 * | mat, |
C_STRUCT aiVector3D * | scaling, | ||
C_STRUCT aiVector3D * | axis, | ||
ai_real * | angle, | ||
C_STRUCT aiVector3D * | position | ||
) |
Decompose a transformation matrix into its scaling, rotational split into an axis and rotational angle, and it's translational components.
mat | Matrix to decompose |
rotation | Receives the rotational component |
axis | Receives the output rotation axis |
angle | Receives the output rotation angle |
position | Receives the output position for the x,y,z axes. |
ASSIMP_API void aiMatrix4DecomposeIntoScalingEulerAnglesPosition | ( | const C_STRUCT aiMatrix4x4 * | mat, |
C_STRUCT aiVector3D * | scaling, | ||
C_STRUCT aiVector3D * | rotation, | ||
C_STRUCT aiVector3D * | position | ||
) |
Decompose a transformation matrix into its scaling, rotational as euler angles, and translational components.
mat | Matrix to decompose |
scaling | Receives the output scaling for the x,y,z axes |
rotation | Receives the output rotation as a Euler angles |
position | Receives the output position for the x,y,z axes |
ASSIMP_API void aiMatrix4DecomposeNoScaling | ( | const C_STRUCT aiMatrix4x4 * | mat, |
C_STRUCT aiQuaternion * | rotation, | ||
C_STRUCT aiVector3D * | position | ||
) |
Decompose a transformation matrix into its rotational and translational components.
mat | Matrix to decompose |
rotation | Receives the rotational component |
position | Receives the translational component. |
ASSIMP_API float aiMatrix4Determinant | ( | const C_STRUCT aiMatrix4x4 * | mat | ) |
Get the determinant of a 4x4 matrix.
mat | Matrix to get the determinant from |
ASSIMP_API void aiMatrix4FromEulerAngles | ( | C_STRUCT aiMatrix4x4 * | mat, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Creates a 4x4 matrix from a set of euler angles.
mat | Receives the output matrix |
x | Rotation angle for the x-axis, in radians |
y | Rotation angle for the y-axis, in radians |
z | Rotation angle for the z-axis, in radians |
ASSIMP_API void aiMatrix4FromMatrix3 | ( | C_STRUCT aiMatrix4x4 * | dst, |
const C_STRUCT aiMatrix3x3 * | mat | ||
) |
Construct a 4x4 matrix from a 3x3 matrix.
dst | Receives the output matrix |
mat | The 3x3 matrix to use |
ASSIMP_API void aiMatrix4FromRotationAroundAxis | ( | C_STRUCT aiMatrix4x4 * | mat, |
const C_STRUCT aiVector3D * | axis, | ||
const float | angle | ||
) |
Returns a 4x4 rotation matrix for a rotation around an arbitrary axis.
mat | Receives the output matrix |
axis | Rotation axis, should be a normalized vector |
angle | Rotation angle, in radians |
ASSIMP_API void aiMatrix4FromScalingQuaternionPosition | ( | C_STRUCT aiMatrix4x4 * | mat, |
const C_STRUCT aiVector3D * | scaling, | ||
const C_STRUCT aiQuaternion * | rotation, | ||
const C_STRUCT aiVector3D * | position | ||
) |
Construct a 4x4 matrix from scaling, rotation and position.
mat | Receives the output matrix. |
scaling | The scaling for the x,y,z axes |
rotation | The rotation as a hamilton quaternion |
position | The position for the x,y,z axes |
ASSIMP_API void aiMatrix4FromTo | ( | C_STRUCT aiMatrix4x4 * | mat, |
const C_STRUCT aiVector3D * | from, | ||
const C_STRUCT aiVector3D * | to | ||
) |
Create a 4x4 matrix that rotates one vector to another vector.
mat | Receives the output matrix |
from | Vector to rotate from |
to | Vector to rotate to |
ASSIMP_API void aiMatrix4Inverse | ( | C_STRUCT aiMatrix4x4 * | mat | ) |
Invert a 4x4 matrix.
result | Matrix to invert |
ASSIMP_API int aiMatrix4IsIdentity | ( | const C_STRUCT aiMatrix4x4 * | mat | ) |
Returns true of the matrix is the identity matrix.
mat | Matrix to get the determinant from |
mat
is an identity matrix. mat
is not an identity matrix. ASSIMP_API void aiMatrix4RotationX | ( | C_STRUCT aiMatrix4x4 * | mat, |
const float | angle | ||
) |
Get a 4x4 rotation matrix around the X axis.
mat | Receives the output matrix |
angle | Rotation angle, in radians |
ASSIMP_API void aiMatrix4RotationY | ( | C_STRUCT aiMatrix4x4 * | mat, |
const float | angle | ||
) |
Get a 4x4 rotation matrix around the Y axis.
mat | Receives the output matrix |
angle | Rotation angle, in radians |
ASSIMP_API void aiMatrix4RotationZ | ( | C_STRUCT aiMatrix4x4 * | mat, |
const float | angle | ||
) |
Get a 4x4 rotation matrix around the Z axis.
mat | Receives the output matrix |
angle | Rotation angle, in radians |
ASSIMP_API void aiMatrix4Scaling | ( | C_STRUCT aiMatrix4x4 * | mat, |
const C_STRUCT aiVector3D * | scaling | ||
) |
Get a 4x4 scaling matrix.
mat | Receives the output matrix |
scaling | The scaling vector |
ASSIMP_API void aiMatrix4Translation | ( | C_STRUCT aiMatrix4x4 * | mat, |
const C_STRUCT aiVector3D * | translation | ||
) |
Get a 4x4 translation matrix.
mat | Receives the output matrix |
translation | The translation vector |
ASSIMP_API void aiMultiplyMatrix3 | ( | C_STRUCT aiMatrix3x3 * | dst, |
const C_STRUCT aiMatrix3x3 * | src | ||
) |
Multiply two 3x3 matrices.
dst | First factor, receives result. |
src | Matrix to be multiplied with 'dst'. |
ASSIMP_API void aiMultiplyMatrix4 | ( | C_STRUCT aiMatrix4x4 * | dst, |
const C_STRUCT aiMatrix4x4 * | src | ||
) |
Multiply two 4x4 matrices.
dst | First factor, receives result. |
src | Matrix to be multiplied with 'dst'. |
ASSIMP_API int aiQuaternionAreEqual | ( | const C_STRUCT aiQuaternion * | a, |
const C_STRUCT aiQuaternion * | b | ||
) |
Check if quaternions are equal.
a | First quaternion to compare |
b | Second quaternion to compare |
ASSIMP_API int aiQuaternionAreEqualEpsilon | ( | const C_STRUCT aiQuaternion * | a, |
const C_STRUCT aiQuaternion * | b, | ||
const float | epsilon | ||
) |
Check if quaternions are equal using epsilon.
a | First quaternion to compare |
b | Second quaternion to compare |
epsilon | Epsilon |
ASSIMP_API void aiQuaternionConjugate | ( | C_STRUCT aiQuaternion * | q | ) |
Compute quaternion conjugate.
q | Quaternion to compute conjugate, receives the output quaternion |
ASSIMP_API void aiQuaternionFromAxisAngle | ( | C_STRUCT aiQuaternion * | q, |
const C_STRUCT aiVector3D * | axis, | ||
const float | angle | ||
) |
Create a Quaternion from an axis angle pair.
q | Receives the output quaternion |
axis | The orientation axis |
angle | The rotation angle, in radians |
ASSIMP_API void aiQuaternionFromEulerAngles | ( | C_STRUCT aiQuaternion * | q, |
float | x, | ||
float | y, | ||
float | z | ||
) |
Create a Quaternion from euler angles.
q | Receives the output quaternion |
x | Rotation angle for the x-axis, in radians |
y | Rotation angle for the y-axis, in radians |
z | Rotation angle for the z-axis, in radians |
ASSIMP_API void aiQuaternionFromNormalizedQuaternion | ( | C_STRUCT aiQuaternion * | q, |
const C_STRUCT aiVector3D * | normalized | ||
) |
Create a Quaternion from a normalized quaternion stored in a 3D vector.
q | Receives the output quaternion |
normalized | The vector that stores the quaternion |
ASSIMP_API void aiQuaternionInterpolate | ( | C_STRUCT aiQuaternion * | dst, |
const C_STRUCT aiQuaternion * | start, | ||
const C_STRUCT aiQuaternion * | end, | ||
const float | factor | ||
) |
Performs a spherical interpolation between two quaternions.
dst | Receives the quaternion resulting from the interpolation. |
start | Quaternion when factor == 0 |
end | Quaternion when factor == 1 |
factor | Interpolation factor between 0 and 1 |
ASSIMP_API void aiQuaternionMultiply | ( | C_STRUCT aiQuaternion * | dst, |
const C_STRUCT aiQuaternion * | q | ||
) |
Multiply quaternions.
dst | First quaternion, receives the output quaternion |
q | Second quaternion |
ASSIMP_API void aiQuaternionNormalize | ( | C_STRUCT aiQuaternion * | q | ) |
Normalize a quaternion.
q | Quaternion to normalize |
ASSIMP_API void aiReleaseImport | ( | const C_STRUCT aiScene * | pScene | ) |
Releases all resources associated with the given import process.
Call this function after you're done with the imported data.
pScene | The imported data to release. NULL is a valid value. |
ASSIMP_API void aiReleasePropertyStore | ( | C_STRUCT aiPropertyStore * | p | ) |
Delete a property store.
p | Property store to be deleted. |
ASSIMP_API void aiSetImportPropertyFloat | ( | C_STRUCT aiPropertyStore * | store, |
const char * | szName, | ||
ai_real | value | ||
) |
Set a floating-point property.
This is the C-version of Assimp::Importer::SetPropertyFloat(). In the C interface, properties are always shared by all imports. It is not possible to specify them per import.
store | Store to modify. Use aiCreatePropertyStore to obtain a store. |
szName | Name of the configuration property to be set. All supported public properties are defined in the config.h header file (AI_CONFIG_XXX). |
value | New value for the property |
ASSIMP_API void aiSetImportPropertyInteger | ( | C_STRUCT aiPropertyStore * | store, |
const char * | szName, | ||
int | value | ||
) |
Set an integer property.
This is the C-version of Assimp::Importer::SetPropertyInteger(). In the C interface, properties are always shared by all imports. It is not possible to specify them per import.
store | Store to modify. Use aiCreatePropertyStore to obtain a store. |
szName | Name of the configuration property to be set. All supported public properties are defined in the config.h header file (AI_CONFIG_XXX). |
value | New value for the property |
ASSIMP_API void aiSetImportPropertyMatrix | ( | C_STRUCT aiPropertyStore * | store, |
const char * | szName, | ||
const C_STRUCT aiMatrix4x4 * | mat | ||
) |
Set a matrix property.
This is the C-version of Assimp::Importer::SetPropertyMatrix(). In the C interface, properties are always shared by all imports. It is not possible to specify them per import.
store | Store to modify. Use aiCreatePropertyStore to obtain a store. |
szName | Name of the configuration property to be set. All supported public properties are defined in the config.h header file (AI_CONFIG_XXX). |
mat | New value for the property |
ASSIMP_API void aiSetImportPropertyString | ( | C_STRUCT aiPropertyStore * | store, |
const char * | szName, | ||
const C_STRUCT aiString * | st | ||
) |
Set a string property.
This is the C-version of Assimp::Importer::SetPropertyString(). In the C interface, properties are always shared by all imports. It is not possible to specify them per import.
store | Store to modify. Use aiCreatePropertyStore to obtain a store. |
szName | Name of the configuration property to be set. All supported public properties are defined in the config.h header file (AI_CONFIG_XXX). |
st | New value for the property |
ASSIMP_API void aiTransformVecByMatrix3 | ( | C_STRUCT aiVector3D * | vec, |
const C_STRUCT aiMatrix3x3 * | mat | ||
) |
Transform a vector by a 3x3 matrix.
vec | Vector to be transformed. |
mat | Matrix to transform the vector with. |
ASSIMP_API void aiTransformVecByMatrix4 | ( | C_STRUCT aiVector3D * | vec, |
const C_STRUCT aiMatrix4x4 * | mat | ||
) |
Transform a vector by a 4x4 matrix.
vec | Vector to be transformed. |
mat | Matrix to transform the vector with. |
ASSIMP_API void aiTransposeMatrix3 | ( | C_STRUCT aiMatrix3x3 * | mat | ) |
Transpose a 3x3 matrix.
mat | Pointer to the matrix to be transposed |
ASSIMP_API void aiTransposeMatrix4 | ( | C_STRUCT aiMatrix4x4 * | mat | ) |
Transpose a 4x4 matrix.
mat | Pointer to the matrix to be transposed |
ASSIMP_API void aiVector2Add | ( | C_STRUCT aiVector2D * | dst, |
const C_STRUCT aiVector2D * | src | ||
) |
Add 2D vectors.
dst | First addend, receives result. |
src | Vector to be added to 'dst'. |
ASSIMP_API int aiVector2AreEqual | ( | const C_STRUCT aiVector2D * | a, |
const C_STRUCT aiVector2D * | b | ||
) |
Check if 2D vectors are equal.
a | First vector to compare |
b | Second vector to compare |
ASSIMP_API int aiVector2AreEqualEpsilon | ( | const C_STRUCT aiVector2D * | a, |
const C_STRUCT aiVector2D * | b, | ||
const float | epsilon | ||
) |
Check if 2D vectors are equal using epsilon.
a | First vector to compare |
b | Second vector to compare |
epsilon | Epsilon |
ASSIMP_API void aiVector2DivideByScalar | ( | C_STRUCT aiVector2D * | dst, |
const float | s | ||
) |
Divide a 2D vector by a scalar.
dst | Vector to be divided by s |
s | Scalar divisor |
ASSIMP_API void aiVector2DivideByVector | ( | C_STRUCT aiVector2D * | dst, |
C_STRUCT aiVector2D * | v | ||
) |
Divide each component of a 2D vector by the components of another vector.
dst | Vector as the dividend |
v | Vector as the divisor |
ASSIMP_API float aiVector2DotProduct | ( | const C_STRUCT aiVector2D * | a, |
const C_STRUCT aiVector2D * | b | ||
) |
Get the dot product of 2D vectors.
a | First vector |
b | Second vector |
ASSIMP_API float aiVector2Length | ( | const C_STRUCT aiVector2D * | v | ) |
Get the length of a 2D vector.
ASSIMP_API void aiVector2Negate | ( | C_STRUCT aiVector2D * | dst | ) |
Negate a 2D vector.
dst | Vector to be negated |
ASSIMP_API void aiVector2Normalize | ( | C_STRUCT aiVector2D * | v | ) |
Normalize a 2D vector.
v | Vector to normalize |
ASSIMP_API void aiVector2Scale | ( | C_STRUCT aiVector2D * | dst, |
const float | s | ||
) |
Multiply a 2D vector by a scalar.
dst | Vector to be scaled by s |
s | Scale factor |
ASSIMP_API float aiVector2SquareLength | ( | const C_STRUCT aiVector2D * | v | ) |
Get the squared length of a 2D vector.
ASSIMP_API void aiVector2Subtract | ( | C_STRUCT aiVector2D * | dst, |
const C_STRUCT aiVector2D * | src | ||
) |
Subtract 2D vectors.
dst | Minuend, receives result. |
src | Vector to be subtracted from 'dst'. |
ASSIMP_API void aiVector2SymMul | ( | C_STRUCT aiVector2D * | dst, |
const C_STRUCT aiVector2D * | other | ||
) |
Multiply each component of a 2D vector with the components of another vector.
dst | First vector, receives result |
other | Second vector |
ASSIMP_API void aiVector3Add | ( | C_STRUCT aiVector3D * | dst, |
const C_STRUCT aiVector3D * | src | ||
) |
Add 3D vectors.
dst | First addend, receives result. |
src | Vector to be added to 'dst'. |
ASSIMP_API int aiVector3AreEqual | ( | const C_STRUCT aiVector3D * | a, |
const C_STRUCT aiVector3D * | b | ||
) |
Check if 3D vectors are equal.
a | First vector to compare |
b | Second vector to compare |
ASSIMP_API int aiVector3AreEqualEpsilon | ( | const C_STRUCT aiVector3D * | a, |
const C_STRUCT aiVector3D * | b, | ||
const float | epsilon | ||
) |
Check if 3D vectors are equal using epsilon.
a | First vector to compare |
b | Second vector to compare |
epsilon | Epsilon |
ASSIMP_API void aiVector3CrossProduct | ( | C_STRUCT aiVector3D * | dst, |
const C_STRUCT aiVector3D * | a, | ||
const C_STRUCT aiVector3D * | b | ||
) |
Get cross product of 3D vectors.
dst | Vector to receive the result. |
a | First vector |
b | Second vector |
ASSIMP_API void aiVector3DivideByScalar | ( | C_STRUCT aiVector3D * | dst, |
const float | s | ||
) |
Divide a 3D vector by a scalar.
dst | Vector to be divided by s |
s | Scalar divisor |
ASSIMP_API void aiVector3DivideByVector | ( | C_STRUCT aiVector3D * | dst, |
C_STRUCT aiVector3D * | v | ||
) |
Divide each component of a 3D vector by the components of another vector.
dst | Vector as the dividend |
v | Vector as the divisor |
ASSIMP_API float aiVector3DotProduct | ( | const C_STRUCT aiVector3D * | a, |
const C_STRUCT aiVector3D * | b | ||
) |
Get the dot product of 3D vectors.
a | First vector |
b | Second vector |
ASSIMP_API float aiVector3Length | ( | const C_STRUCT aiVector3D * | v | ) |
Get the length of a 3D vector.
ASSIMP_API int aiVector3LessThan | ( | const C_STRUCT aiVector3D * | a, |
const C_STRUCT aiVector3D * | b | ||
) |
Check if vector a
is less than vector b
.
a | First vector to compare |
b | Second vector to compare |
epsilon | Epsilon |
a
is less than b
a
is equal or greater than b
ASSIMP_API void aiVector3Negate | ( | C_STRUCT aiVector3D * | dst | ) |
Negate a 3D vector.
dst | Vector to be negated |
ASSIMP_API void aiVector3Normalize | ( | C_STRUCT aiVector3D * | v | ) |
Normalize a 3D vector.
v | Vector to normalize |
ASSIMP_API void aiVector3NormalizeSafe | ( | C_STRUCT aiVector3D * | v | ) |
Check for division by zero and normalize a 3D vector.
v | Vector to normalize |
ASSIMP_API void aiVector3RotateByQuaternion | ( | C_STRUCT aiVector3D * | v, |
const C_STRUCT aiQuaternion * | q | ||
) |
Rotate a 3D vector by a quaternion.
v | The vector to rotate by q |
q | Quaternion to use to rotate v |
ASSIMP_API void aiVector3Scale | ( | C_STRUCT aiVector3D * | dst, |
const float | s | ||
) |
Multiply a 3D vector by a scalar.
dst | Vector to be scaled by s |
s | Scale factor |
ASSIMP_API float aiVector3SquareLength | ( | const C_STRUCT aiVector3D * | v | ) |
Get the squared length of a 3D vector.
ASSIMP_API void aiVector3Subtract | ( | C_STRUCT aiVector3D * | dst, |
const C_STRUCT aiVector3D * | src | ||
) |
Subtract 3D vectors.
dst | Minuend, receives result. |
src | Vector to be subtracted from 'dst'. |
ASSIMP_API void aiVector3SymMul | ( | C_STRUCT aiVector3D * | dst, |
const C_STRUCT aiVector3D * | other | ||
) |
Multiply each component of a 3D vector with the components of another vector.
dst | First vector, receives result |
other | Second vector |