IcePlane.cpp
Go to the documentation of this file.
00001 
00002 
00008 
00009 
00011 
00017 
00018 
00020 // Precompiled Header
00021 #include "Stdafx.h"
00022 
00023 using namespace IceMaths;
00024 
00026 
00033 
00034 Plane& Plane::Set(const Point& p0, const Point& p1, const Point& p2)
00035 {
00036         Point Edge0 = p1 - p0;
00037         Point Edge1 = p2 - p0;
00038 
00039         n = Edge0 ^ Edge1;
00040         n.Normalize();
00041 
00042         d = -(p0 | n);
00043 
00044         return  *this;
00045 }


openhrp3
Author(s): AIST, General Robotix Inc., Nakamura Lab of Dept. of Mechano Informatics at University of Tokyo
autogenerated on Thu Apr 11 2019 03:30:16