sphere_position Function

private pure function sphere_position(self) result(p)

Position of the body's center in its frame (scene units).

Type Bound

Sphere

Arguments

Type IntentOptional Attributes Name
class(Sphere), intent(in) :: self

Return Value real(kind=wp), (3)


Source Code

    pure function sphere_position(self) result(p)
        class(Sphere), intent(in) :: self
        real(wp) :: p(3)
        p = self%sphere_position_
    end function sphere_position