Skip to content

Commit

Permalink
chore: make receiver name consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
twpayne committed Oct 31, 2024
1 parent 3480ad7 commit ef7cb6e
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions float64slice.go
Original file line number Diff line number Diff line change
@@ -1,20 +1,20 @@
package proj

// ForwardFloat64Slice transforms float64 in place in the forward direction.
func (pj *PJ) ForwardFloat64Slice(float64Slice []float64) ([]float64, error) {
return pj.TransFloat64Slice(DirectionFwd, float64Slice)
func (p *PJ) ForwardFloat64Slice(float64Slice []float64) ([]float64, error) {

Check failure on line 4 in float64slice.go

View workflow job for this annotation

GitHub Actions / lint

ST1016: methods on the same type should have the same receiver name (seen 3x "p", 3x "pj") (stylecheck)
return p.TransFloat64Slice(DirectionFwd, float64Slice)
}

// InverseFloat64Slice transforms float64 in place in the forward direction.
func (pj *PJ) InverseFloat64Slice(float64Slice []float64) ([]float64, error) {
return pj.TransFloat64Slice(DirectionInv, float64Slice)
func (p *PJ) InverseFloat64Slice(float64Slice []float64) ([]float64, error) {
return p.TransFloat64Slice(DirectionInv, float64Slice)
}

// TransFloat64Slice transforms a []float64 in place.
func (pj *PJ) TransFloat64Slice(direction Direction, float64Slice []float64) ([]float64, error) {
func (p *PJ) TransFloat64Slice(direction Direction, float64Slice []float64) ([]float64, error) {
var coord Coord
copy(coord[:], float64Slice)
transCoord, err := pj.Trans(direction, coord)
transCoord, err := p.Trans(direction, coord)
if err != nil {
return nil, err
}
Expand Down

0 comments on commit ef7cb6e

Please sign in to comment.