 # PointSignal

### Properties

PropertyDescription

`x`

``````(get) x: ScalarSignal
(set) (Not Available)
``````

Represents the X coordinate of the point.

`y`

``````(get) y: ScalarSignal
(set) (Not Available)
``````

Represents the Y coordinate of the point.

`z`

``````(get) z: ScalarSignal
(set) (Not Available)
``````

Represents the Z coordinate of the point.

### Methods

MethodDescription

`add`

``````add(other: VectorSignal): ScalarSignal
``````

Returns a signal with the value that is the sum of the values of the given signals.

Note: `add` and `sum` functions are synonims, the behavior they provide is equivalent.

See Also: `PointSignal.sum`, `ReactiveModule.add`

`delayBy`

``````delayBy({milliseconds: number}): PointSignal
``````

Delays a point signal. The argument is an object with a "milliseconds" property specifying the delay duration in milliseconds.

`distance`

``````distance(other: PointSignal): ScalarSignal
``````

Returns the distance from the point to another point as a `ScalarSignal`.

`expSmooth`

``````expSmooth(dampFactor: number): PointSignal
``````

Smoothes a variable signal using exponential averaging over time. The argument specifies the dampening time constant in milliseconds.

Note: See also `ReactiveModule.expSmooth`.

`sub`

``````sub(other: PointSignal): VectorSignal
sub(other: VectorSignal): PointSignal
``````

Returns a signal with the value that is the difference of the values of the given signals.

See Also: `ReactiveModule.sub`, `VectorSignal.sub`, `ScalarSignal.sub`

`sum`

``````sum(other: VectorSignal): PointSignal
``````

Returns a signal with the value that is the sum of the values of the given signals.

Note: `add` and `sum` functions are synonims, the behavior they provide is equivalent.

See Also: `PointSignal.add`, `ReactiveModule.sum`