UNPKG

@babylonjs/core

Version:

Getting started? Play directly with the Babylon.js API using our [playground](https://playground.babylonjs.com/). It also contains a lot of samples to learn how to use it.

58 lines (57 loc) 2.51 kB
import { type Matrix, type Quaternion, type Vector2, type Vector3, type Vector4 } from "../Maths/math.vector.js"; import { type Node } from "../node.js"; import { type FlowGraphInteger } from "./CustomTypes/flowGraphInteger.js"; import { type FlowGraphMatrix2D, type FlowGraphMatrix3D } from "./CustomTypes/flowGraphMatrix.js"; /** * @internal * Returns if mesh1 is a descendant of mesh2 * @param mesh1 * @param mesh2 * @returns */ export declare function _IsDescendantOf(mesh1: Node, mesh2: Node): boolean; export type FlowGraphNumber = number | FlowGraphInteger; export type FlowGraphVector = Vector2 | Vector3 | Vector4 | Quaternion; export type FlowGraphMatrix = Matrix | FlowGraphMatrix2D | FlowGraphMatrix3D; export type FlowGraphMathOperationType = FlowGraphNumber | FlowGraphVector | FlowGraphMatrix | boolean; /** * @internal */ export declare function _GetClassNameOf(v: any): any; /** * @internal * Check if two classname are the same and are vector or quaternion classes. * @param className the first class name * @param className2 the second class name * @returns whether the two class names are the same and are vector or quaternion classes. */ export declare function _AreSameVectorOrQuaternionClass(className: string, className2: string): boolean; /** * @internal * Check if two classname are the same and are matrix classes. * @param className the first class name * @param className2 the second class name * @returns whether the two class names are the same and are matrix classes. */ export declare function _AreSameMatrixClass(className: string, className2: string): boolean; /** * @internal * Check if two classname are the same and are integer classes. * @param className the first class name * @param className2 the second class name * @returns whether the two class names are the same and are integer classes. */ export declare function _AreSameIntegerClass(className: string, className2: string): boolean; /** * Check if an object has a numeric value. * @param a the object to check if it is a number. * @param validIfNaN whether to consider NaN as a valid number. * @returns whether a is a FlowGraphNumber (Integer or number). */ export declare function isNumeric(a: FlowGraphMathOperationType, validIfNaN?: boolean): a is FlowGraphNumber; /** * Get the numeric value of a FlowGraphNumber. * @param a the object to get the numeric value from. * @returns the numeric value. */ export declare function getNumericValue(a: FlowGraphNumber): number;