Lines Matching refs:Vector3

171 Vector3 Matrix4::GetScale() const  in GetScale()
173 Vector3 retVal; in GetScale()
174 retVal.x_ = Vector3(mat_[0][0], mat_[0][1], mat_[0][2]).Length(); // 2: column2 in GetScale()
175 retVal.y_ = Vector3(mat_[1][0], mat_[1][1], mat_[1][2]).Length(); // 2: column2 in GetScale()
176 retVal.z_ = Vector3(mat_[2][0], mat_[2][1], mat_[2][2]).Length(); // 2: row2 in GetScale()
180 Vector3 Matrix4::GetTranslation() const in GetTranslation()
182 return Vector3(mat_[3][0], mat_[3][1], mat_[3][2]); // 3: row3, 2: column2 in GetTranslation()
264 Matrix4 CreateTranslation(const Vector3& trans) in CreateTranslation()
274 Matrix4 CreateLookAt(const Vector3& eye, const Vector3& target, const Vector3& up) in CreateLookAt()
276 Vector3 zaxis = Vector3::Normalize(target - eye); in CreateLookAt()
277 Vector3 xaxis = Vector3::Normalize(Vector3::Cross(up, zaxis)); in CreateLookAt()
278 Vector3 yaxis = Vector3::Normalize(Vector3::Cross(zaxis, xaxis)); in CreateLookAt()
279 Vector3 trans; in CreateLookAt()
280 trans.x_ = -Vector3::Dot(xaxis, eye); in CreateLookAt()
281 trans.y_ = -Vector3::Dot(yaxis, eye); in CreateLookAt()
282 trans.z_ = -Vector3::Dot(zaxis, eye); in CreateLookAt()
292 Matrix4 CreatePerspective(const Vector3& camera) in CreatePerspective()
312 Vector3 Transform(const Vector3& vec, const Matrix4& mat) in Transform()
314 Vector3 retVal; in Transform()
325 Vector3 TransformWithPerspDiv(const Vector3& vec, const Matrix4& mat, float w) in TransformWithPerspDiv()
327 Vector3 retVal; in TransformWithPerspDiv()
350 Vector3 screenPoint(p.x_, p.y_, 0.1f); in GetOriginScreenPoint()
351 Vector3 start = TransformWithPerspDiv(screenPoint, invertMat); in GetOriginScreenPoint()
354 Vector3 end = TransformWithPerspDiv(screenPoint, invertMat); in GetOriginScreenPoint()