// 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. // // Original author: ericv@google.com (Eric Veach) // Converted to D: madric@gmail.com (Vijay Nayar) module s2.s2point; import s2.util.math.vector; public import s2.util.math.s2const; // 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). alias S2Point = Vector3_d;