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.

67 lines (66 loc) 2.12 kB
import { NodeGeometryBlock } from "../nodeGeometryBlock.js"; import type { NodeGeometryConnectionPoint } from "../nodeGeometryBlockConnectionPoint.js"; import type { NodeGeometryBuildState } from "../nodeGeometryBuildState.js"; /** * Block used to apply a transform to a vector / geometry */ export declare class GeometryTransformBlock extends NodeGeometryBlock { private _rotationMatrix; private _scalingMatrix; private _translationMatrix; private _scalingRotationMatrix; private _pivotMatrix; private _backPivotMatrix; private _transformMatrix; /** * Gets or sets a boolean indicating that this block can evaluate context * Build performance is improved when this value is set to false as the system will cache values instead of reevaluating everything per context change */ evaluateContext: boolean; /** * Create a new GeometryTransformBlock * @param name defines the block name */ constructor(name: string); /** * Gets the current class name * @returns the class name */ getClassName(): string; /** * Gets the value input component */ get value(): NodeGeometryConnectionPoint; /** * Gets the matrix input component */ get matrix(): NodeGeometryConnectionPoint; /** * Gets the translation input component */ get translation(): NodeGeometryConnectionPoint; /** * Gets the rotation input component */ get rotation(): NodeGeometryConnectionPoint; /** * Gets the scaling input component */ get scaling(): NodeGeometryConnectionPoint; /** * Gets the pivot input component */ get pivot(): NodeGeometryConnectionPoint; /** * Gets the output component */ get output(): NodeGeometryConnectionPoint; protected _buildBlock(state: NodeGeometryBuildState): void; protected _dumpPropertiesCode(): string; /** * Serializes this block in a JSON representation * @returns the serialized block object */ serialize(): any; _deserialize(serializationObject: any): void; }