Visit ComfyUI Online for ready-to-use ComfyUI environment
Create 2D vector from float values for mathematical/graphical applications, simplifying vector creation process.
The CM_ComposeVec2
node is designed to create a 2-dimensional vector (Vec2) from two floating-point values. This node is particularly useful in mathematical and graphical applications where you need to represent a point or a direction in a 2D space. By providing the x and y components, you can easily construct a Vec2, which can then be used in various operations such as transformations, animations, or any other context where 2D vectors are applicable. This node simplifies the process of vector creation, ensuring that you can quickly and efficiently generate Vec2 values without manually handling the individual components.
The x
parameter represents the x-coordinate or the horizontal component of the 2D vector. It is a floating-point value that determines the position or magnitude along the x-axis. The default value for this parameter is 0.0, but you can set it to any floating-point number depending on your specific needs. Adjusting this value will directly impact the resulting Vec2's x component.
The y
parameter represents the y-coordinate or the vertical component of the 2D vector. Similar to the x
parameter, it is a floating-point value that determines the position or magnitude along the y-axis. The default value for this parameter is 0.0, but you can set it to any floating-point number based on your requirements. Modifying this value will directly affect the resulting Vec2's y component.
The output parameter VEC2
is the resulting 2-dimensional vector composed of the provided x and y values. This Vec2 is a tuple containing two floating-point numbers, representing the x and y components respectively. The output is essential for any subsequent operations that require a 2D vector, such as vector arithmetic, transformations, or graphical representations.
CM_ComposeVec2
node to quickly create 2D vectors for graphical applications, ensuring that you have precise control over the x and y components.CM_ComposeVec2
node. If you want to use the default values, ensure that the parameters are not left empty.© Copyright 2024 RunComfy. All Rights Reserved.