Mid point of a triangle

is there any built in easy way to find the mid point of a triangle in a mesh.

Basically i want to find the nearest face and then cast towards it.
I can do nearest vertex on a mesh fairly easy but i want to cast towards the nearest “face” not the nearest mesh (this has importance due to wanting to take the nearest face of one object and rotate it to be parallel to another, as such nearest vertex really won’t work for me)

i’m not sure if there is a function that would do it easy (it seems like for lighting or something it’d actually be useful information so i was hoping it mgiht be built in somehwere)

if not the math behind it perhaps if you know it?

i’m thinking Maybe if you have points A B C

the mid point is something like
the intersection of line

A → midpoint of(B,C)
B → midpoint of (A,C)
C → midpoint of (A,B)

though i think that last step might be redundant i think C crosses at the same point as
A to mid and B to mid cross.

is this right?

ya in mathematical terms this way will work Good for Even Sized(having all surface of same length) triangles… but in the case of others please Follow this link —> Center of Triangle one more thing i have only suggested mathematical way…

Don’t forget to mark the answer if found useful

This may be useful: http://docs.unity3d.com/Documentation/ScriptReference/RaycastHit-barycentricCoordinate.html

Barycentric (mid) point is (A + B + C) / 3