API Reference > geometry-core > CartesianGeometry > BarycentricTriangle > createXYZXYZXYZ createXYZXYZXYZ MethodStatic Return a BarycentricTriangle with coordinates given by enumerated x,y,z of the 3 points. createXYZXYZXYZ(x0: number, y0: number, z0: number, x1: number, y1: number, z1: number, x2: number, y2: number, z2: number, result?: BarycentricTriangle): BarycentricTriangle Parameter Type Description x0 number y0 number z0 number x1 number y1 number z1 number x2 number y2 number z2 number result BarycentricTriangle optional pre-allocated triangle. Returns - BarycentricTriangle Defined in core/geometry/src/geometry3d/BarycentricTriangle.ts Line 33 Last Updated: 15 June, 2021