blob: 88a061b8d34e4a897487437ebbb6261a7e97c782 [file] [log] [blame]
// Copyright 2005 Google Inc. All Rights Reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS-IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Author: ericv@google.com (Eric Veach)
#ifndef S2_S2POINT_H_
#define S2_S2POINT_H_
#include "s2/_fpcontractoff.h"
#include "s2/util/math/vector.h" // IWYU pragma: export
// An S2Point represents a point on the unit sphere as a 3D vector. Usually
// points are normalized to be unit length, but some methods do not require
// this. See util/math/vector.h for the methods available. Among other
// things, there are overloaded operators that make it convenient to write
// arithmetic expressions (e.g. (1-x)*p1 + x*p2).
using S2Point = Vector3_d;
#endif // S2_S2POINT_H_