ray

fun Canvas.ray(px: Int, py: Int, pz: Int, dx: Float, dy: Float, dz: Float, color: Color = Color.BLACK)

Draws a ray in 3D space.

Parameters

px

The X coordinate of the ray origin.

py

The Y coordinate of the ray origin.

pz

The Z coordinate of the ray origin.

dx

The X component of the ray direction.

dy

The Y component of the ray direction.

dz

The Z component of the ray direction.

color

The color of the ray.