rust-geometry API documentation
Project documentation Docs

File: src/internal.rs

1// --------------------------------------------------------------------------------------------------2// SPDX-License-Identifier: Apache-2.03// SPDX-FileCopyrightText: 2026 cpdocs developers4// --------------------------------------------------------------------------------------------------5use crate::geometry::Vector3;6 7// Implementation-only helper. It is browseable in the file hierarchy but is not public API.8pub(crate) fn norm_squared(value: Vector3) -> f64 {9    value.x * value.x + value.y * value.y + value.z * value.z10}