Skip to content

Commit

Permalink
Tweaks to comments
Browse files Browse the repository at this point in the history
  • Loading branch information
peterstace committed Jan 16, 2025
1 parent dc8c2a9 commit 14c0219
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
5 changes: 3 additions & 2 deletions carto/proj_albers_equal_area_conic.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ type AlbersEqualAreaConic struct {
}

// NewAlbersEqualAreaConic returns a new AlbersEqualAreaConic projection with
// the given earth radius.
// the given earth radius. The standard parallels are set to 30 and 60 degrees
// north.
func NewAlbersEqualAreaConic(earthRadius float64) *AlbersEqualAreaConic {
return &AlbersEqualAreaConic{
radius: earthRadius,
Expand All @@ -32,7 +33,7 @@ func (c *AlbersEqualAreaConic) SetStandardParallels(lat1, lat2 float64) {
}

// SetOrigin sets the origin of the projection to the given (longitude,
// latitude) pair. The origin have projected coordinates (0, 0).
// latitude) pair. The origin has projected coordinates (0, 0).
func (c *AlbersEqualAreaConic) SetOrigin(origin geom.XY) {
c.origin = origin
}
Expand Down
4 changes: 2 additions & 2 deletions carto/proj_equirectangular.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import "github.com/peterstace/simplefeatures/geom"
// pairs via the equirectangular projection.
//
// The equirectangular projection is a cylindrical projection that is:
// - Configured by setting the central meridian and two symmetric standard
// parallels.
// - Configured by setting the central meridian and two standard parallels
// that are symmetric about the equator.
// - Not equal area, but preserves area locally at the standard parallels.
// - Not conformal, but preserves shape locally at the standard parallels.
// - Not equidistant, but preserves distance locally at the standard parallels.
Expand Down
8 changes: 4 additions & 4 deletions carto/proj_orthographic.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ import "github.com/peterstace/simplefeatures/geom"
// Orthographic allows projecting (longitude, latitude) coordinates to (x, y)
// pairs via the orthographic projection.
//
// The orthographic is a projection where the sphere is projected onto a
// tangent plane, with a point of perspective that is infinitely far away. It
// gives a view of the sphere as seen from outer space.
// The orthographic projection projects the sphere onto a tangent plane with a
// point of perspective that is infinitely far away. It gives a view of the
// earth as seen from outer space.
//
// It is:
// - Configured by setting the center of the projection.
Expand All @@ -31,7 +31,7 @@ func NewOrthographic(radius float64) *Orthographic {
}
}

// SetCenterLonLat sets the center of the projection to the given (longitude,
// SetCenter sets the center of the projection to the given (longitude,
// latitude) pair. The center have projected coordinates (0, 0) and be the
// center of the circular map.
func (m *Orthographic) SetCenter(centerLonLat geom.XY) {
Expand Down

0 comments on commit 14c0219

Please sign in to comment.