mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: return type on triFace::area
This commit is contained in:
@ -115,7 +115,7 @@ public:
|
|||||||
inline point centre(const pointField&) const;
|
inline point centre(const pointField&) const;
|
||||||
|
|
||||||
//- Area, optionally return centre point as well
|
//- Area, optionally return centre point as well
|
||||||
inline point area
|
inline vector area
|
||||||
(
|
(
|
||||||
const pointField&,
|
const pointField&,
|
||||||
point& centrePt = *reinterpret_cast<point*>(0)
|
point& centrePt = *reinterpret_cast<point*>(0)
|
||||||
|
|||||||
@ -171,7 +171,7 @@ inline Foam::point Foam::triFace::centre(const pointField& points) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
inline Foam::point Foam::triFace::area
|
inline Foam::vector Foam::triFace::area
|
||||||
(
|
(
|
||||||
const pointField& points,
|
const pointField& points,
|
||||||
point& centrePt
|
point& centrePt
|
||||||
@ -183,15 +183,7 @@ inline Foam::point Foam::triFace::area
|
|||||||
centrePt = this->centre(points);
|
centrePt = this->centre(points);
|
||||||
}
|
}
|
||||||
|
|
||||||
return
|
return this->normal(points);
|
||||||
(
|
|
||||||
0.5
|
|
||||||
*
|
|
||||||
(
|
|
||||||
(points[operator[](1)] - points[operator[](0)])
|
|
||||||
^ (points[operator[](2)] - points[operator[](0)])
|
|
||||||
)
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user