Versions in this module Expand all Collapse all v1 v1.0.37 Jun 27, 2024 v1.0.36 Jun 20, 2024 v1.0.35 Jun 20, 2024 v1.0.34 Jun 18, 2024 v1.0.33 Jun 18, 2024 v1.0.32 May 24, 2024 v1.0.31 May 10, 2024 Changes in this version type AngleDirection + func (t *AngleDirection) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (t AngleDirection) MarshalXML(e *xml.Encoder, start xml.StartElement) error type AngleType + func (t *AngleType) UnmarshalXML(d *xml.Decoder, start xml.StartElement) error + func (t AngleType) MarshalXML(e *xml.Encoder, start xml.StartElement) error v1.0.30 Dec 7, 2023 Changes in this version + var AngleDirections = angleDirections + var AngleTypes = angleTypes + func DegreeToRadian[T geometryNumber](angle T) T + func RadianToDegree[T geometryNumber](angle T) T + type Angle struct + Direction AngleDirection + Magnitude T + Type AngleType + func (t Angle[T]) ToDegree() Angle[T] + func (t Angle[T]) ToRadian() Angle[T] + type AngleDirection string + func (t *AngleDirection) Scan(value interface{}) error + func (t *AngleDirection) UnmarshalJSON(data []byte) error + func (t *AngleDirection) UnmarshalYAML(unmarshal func(interface{}) error) error + func (t AngleDirection) MarshalJSON() ([]byte, error) + func (t AngleDirection) MarshalYAML() (interface{}, error) + func (t AngleDirection) String() string + func (t AngleDirection) Value() (driver.Value, error) + type AngleType string + func (t *AngleType) Scan(value interface{}) error + func (t *AngleType) UnmarshalJSON(data []byte) error + func (t *AngleType) UnmarshalYAML(unmarshal func(interface{}) error) error + func (t AngleType) MarshalJSON() ([]byte, error) + func (t AngleType) MarshalYAML() (interface{}, error) + func (t AngleType) String() string + func (t AngleType) Value() (driver.Value, error) + type CartesianCoordinate struct + X T + Y T + func PolarToCartesian[T geometryNumber](coordinate PolarCoordinate[T]) CartesianCoordinate[T] + type Circle struct + Center CartesianCoordinate[T] + Radius T + func NewCircleXY[T geometryNumber](x, y, radius T) Circle[T] + func NewCircle[T geometryNumber](center CartesianCoordinate[T], radius T) Circle[T] + func (t Circle[T]) Diameter() T + func (t Circle[T]) PointOnCircumference(angle Angle[T]) CartesianCoordinate[T] + func (t Circle[T]) PointOnDiameter(percent T) CartesianCoordinate[T] + func (t Circle[T]) XCoordinate(y T) CartesianCoordinate[T] + func (t Circle[T]) YCoordinate(x T) CartesianCoordinate[T] + type Dimension2d struct + Height T + Width T + func NewDimension2d[T types.Numbers](height, width T) Dimension2d[T] + type LineSegment struct + End CartesianCoordinate[T] + Start CartesianCoordinate[T] + func NewLineSegmentCoords[T geometryNumber](start, end CartesianCoordinate[T]) LineSegment[T] + func NewLineSegmentXY[T geometryNumber](x1, y1, x2, y2 T) LineSegment[T] + func (t LineSegment[T]) IntersectAt(segment LineSegment[T]) CartesianCoordinate[T] + func (t LineSegment[T]) Length() T + func (t LineSegment[T]) Midpoint() CartesianCoordinate[T] + func (t LineSegment[T]) PointAtPercent(percentage T) CartesianCoordinate[T] + func (t LineSegment[T]) Slope() T + func (t LineSegment[T]) SlopeIntercept() SlopeInterceptLine[T] + func (t LineSegment[T]) Standard() StandardLine[T] + type PolarCoordinate struct + Angle Angle[T] + Radius T + func CartesianToPolar[T geometryNumber](coordinate CartesianCoordinate[T]) PolarCoordinate[T] + type Rectangle struct + Dimensions Dimension2d[T] + TopLeft CartesianCoordinate[T] + func NewRectangleXYHW[T geometryNumber](x, y, height, width T) Rectangle[T] + func NewRectangle[T geometryNumber](topLeft CartesianCoordinate[T], dimensions Dimension2d[T]) Rectangle[T] + func (t Rectangle[T]) Area() T + func (t Rectangle[T]) BottomLeft() CartesianCoordinate[T] + func (t Rectangle[T]) BottomMidpoint() CartesianCoordinate[T] + func (t Rectangle[T]) BottomRight() CartesianCoordinate[T] + func (t Rectangle[T]) Center() CartesianCoordinate[T] + func (t Rectangle[T]) LeftMidpoint() CartesianCoordinate[T] + func (t Rectangle[T]) Perimeter() T + func (t Rectangle[T]) PointOnPeremiter(angle Angle[T]) CartesianCoordinate[T] + func (t Rectangle[T]) RightMidpoint() CartesianCoordinate[T] + func (t Rectangle[T]) TopMidpoint() CartesianCoordinate[T] + func (t Rectangle[T]) TopRight() CartesianCoordinate[T] + type SlopeInterceptLine struct + B T + M T + func (t SlopeInterceptLine[T]) Segment(x1, x2 T) LineSegment[T] + func (t SlopeInterceptLine[T]) Y(x T) T + type StandardLine struct + A T + B T + C T