Triangle.Centroid Method

Computes the centroid of a triangle.
Public Shared Function Centroid( _ 
ByVal p1 As Point3D, _ 
ByVal p2 As Point3D, _ 
ByVal p3 As Point3D
) As Point3D
This language is not supported or no code example is available.
public static Point3D Centroid( 
Point3D p1
Point3D p2
Point3D p3 
)
This language is not supported or no code example is available.

Parameters

p1
Point3D

First vertex

p2
Point3D

Second vertex

p3
Point3D

Third vertex

Return Value

Point3D

The 3D centroid position.

.NET Framework

Supported in: 4.8

In this article

Definition