# online(Line, Distance) & onliner(Line, Relative distance) & onlinex(Line, X coordinate) & onliney(Line, Y coordinate) \&onlinez(Line, Z coordinate)

**online(Line, Distance) → \[X coordinate (number), Y coordinate (number), Z coordinate (number)]**

This function calculates the point coordinate at the exact given distance along a line defined by its start and end coordinate values. **onliner(Line, Relative distance) → \[X coordinate (number), Y coordinate (number), Z coordinate (number)]**

This function calculates the point coordinate at the exact relative distance along a line defined by its start and end coordinate values. (0) specifies the start point and (1) specifies the end point. **onlinex(Line, X coordinate)** **→ \[X coordinate (number), Y coordinate (number), Z coordinate (number)]**

This function calculates the point coordinate given X coordinate along a line defined by its start and end coordinate values. **onliney(Line, Y coordinate)** **→ \[X coordinate (number), Y coordinate (number), Z coordinate (number)]**

This function calculates the point coordinate given Y coordinate along a line defined by its start and end coordinate values. **onlinez(Line, Z coordinate)** **→ \[X coordinate (number), Y coordinate (number), Z coordinate (number)]**

This function calculates the point coordinate given Z coordinate along a line defined by its start and end coordinate values.

**Example:**

```xml
<O N="onlineObject1" T="Project" Category="Functions" TransAlignRule="1">
    <!-- created by ParamML Examples on 8/23/2023 -->
    <P N="Line" V="[[0,0,40],[30,20,45]]" />
    <P N="PointAtDistance" V="online(Line,15)" />
    <P N="PointAtRelativeDistance" V="onliner(Line,0.5)" />
    <P N="PointAtGivenXCoordinate" V="onlinex(Line,15)" />
    <P N="PointAtGivenYCoordinate" V="onliney(Line,5)" />
    <P N="PointAtGivenZCoordinate" V="onlinez(Line,44)" />
</O>
```

![](https://openbrim.atlassian.net/wiki/download/attachments/2167668854/image-20230823-143559.png?api=v2) To view this example in the library, see (<https://openbrim.org/app/?incubator=1&author=ParamML_Examples_OpenBrIM+Platform&obj=objidom2dml0mlp649q44gqc5p> )
