// NewSFPoint constructs and returns a new SFPoint object based on the given
// types.SFPoint p. If p is nil, the new SFPoint will be null.
// Otherwise a new, valid SFPoint will be initialized with a copy of p.
NewSFPoint constructs and returns a new SFPoint object based on the given
types.SFPoint p. If p is nil, the new SFPoint will be null.
Otherwise a new, valid SFPoint will be initialized with a copy of p.
// NewSFPoint constructs and returns a new SFPoint object based on the given // types . SFPoint p . If p is nil the new SFPoint will be null . // Otherwise a new valid SFPoint will be initialized with a copy of p .
func NewSFPoint(p types.SFPoint) SFPoint {
	if p.IsNil() {
		return NullSFPoint()
	}
	return SFPoint{
		Point: types.NewSFPoint(p.Point),
		Valid: true,
	}
}
func NewSFPoint ( p types . SFPoint ) SFPoint { if p . IsNil ( ) { return NullSFPoint ( ) } return SFPoint { Point : types . NewSFPoint ( p . Point ) , Valid : true , } }
NewSFPoint constructs and returns a new SFPoint object based on the given
types.SFPoint p. If p is nil, the new SFPoint will be null.
NewSFPoint constructs and returns a new SFPoint object based on the given types . SFPoint p . If p is nil the new SFPoint will be null .