@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.
47 lines (46 loc) • 1.28 kB
TypeScript
import { type NodeParticleConnectionPoint } from "../nodeParticleBlockConnectionPoint.js";
import { type NodeParticleBuildState } from "../nodeParticleBuildState.js";
import { NodeParticleBlock } from "../nodeParticleBlock.js";
/**
* Operations supported by the FloatToInt block
*/
export declare enum ParticleFloatToIntBlockOperations {
/** Round */
Round = 0,
/** Ceil */
Ceil = 1,
/** Floor */
Floor = 2,
/** Truncate */
Truncate = 3
}
/**
* Block used to transform a float to an int
*/
export declare class ParticleFloatToIntBlock extends NodeParticleBlock {
/**
* Gets or sets the operation applied by the block
*/
operation: ParticleFloatToIntBlockOperations;
/**
* Creates a new ParticleFloatToIntBlock
* @param name defines the block name
*/
constructor(name: string);
/**
* Gets the current class name
* @returns the class name
*/
getClassName(): string;
/**
* Gets the input component
*/
get input(): NodeParticleConnectionPoint;
/**
* Gets the output component
*/
get output(): NodeParticleConnectionPoint;
_build(state: NodeParticleBuildState): void;
serialize(): any;
_deserialize(serializationObject: any): void;
}