All Downloads are FREE. Search and download functionalities are using the official Maven repository.

main.cesium.pointInsideTriangle.kt Maven / Gradle / Ivy

// Automatically generated - do not modify!

package cesium

/**
 * Determines if a point is inside a triangle.
 * ```
 * // Returns true
 * var p = new Cartesian2(0.25, 0.25);
 * var b = pointInsideTriangle(p,
 *   new Cartesian2(0.0, 0.0),
 *   new Cartesian2(1.0, 0.0),
 *   new Cartesian2(0.0, 1.0));
 * ```
 * @param [point] The point to test.
 * @param [p0] The first point of the triangle.
 * @param [p1] The second point of the triangle.
 * @param [p2] The third point of the triangle.
 * @return `true` if the point is inside the triangle; otherwise, `false`.
 * @see Online Documentation
 */
@JsName("\$cesium__pointInsideTriangle")
external fun pointInsideTriangle(
    point: Cartesian3,
    p0: Cartesian3,
    p1: Cartesian3,
    p2: Cartesian3,
): Boolean




© 2015 - 2024 Weber Informatics LLC | Privacy Policy