Skip to content

Longitude class

Diagram

classDiagram class Angle { -double radians +radians() double +degrees() double +turns() double } class Longitude Longitude --|> Angle : extends

Summary

Language Type Symbol
C struct Longitude
C++ struct dogma::Longitude
Dart class Longitude
Go struct dogma.Longitude
Java interface dogma.Longitude
JS class dogma.Longitude
Protobuf message dogma.Longitude
Python class dogma.Longitude
Ruby class Dogma::Longitude
Rust struct dogma::Longitude
Zig struct dogma.Longitude

Description

Import

#include <dogma.h>  // for Longitude
#include <dogma.hpp>  // for Longitude

using dogma::Longitude;
import 'package:dogma/dogma.dart' show Longitude;
import "github.com/dogmatists/dogma.go/dogma"
import dogma.Longitude;
import {Longitude} from "./dogma.js";
from dogma import Longitude
require 'dogma'

include Dogma::Longitude
extern crate dogma;

use dogma::Longitude;
const Longitude = @import("dogma").Longitude;

Constants

MAX_DEGREES




dogma.MaxLongitudeDegrees  // 180
Longitude.MAX_DEGREES  // 180
Longitude.MAX_DEGREES  // 180


// TODO

MIN_DEGREES




dogma.MinLongitudeDegrees  // -180
Longitude.MIN_DEGREES  // -180
Longitude.MIN_DEGREES  // -180


// TODO

Constructor

Longitude(86.9250)
Longitude{86.9250}
Longitude(86.9250)
NewLongitude(86.9250)
Longitude.of(86.9250)
new Longitude(86.9250)
Longitude(86.9250)
Longitude.new(86.9250)
Longitude::new(86.9250)
Longitude.init(86.9250)

Properties

Methods

Schema

struct Longitude {
  angle: Angle;
}
Joi.number().min(-180).max(180)
{
  "type": "number",
  "minimum": -180,
  "maximum": 180
}
dogma:Longitude
  a owl:DatatypeProperty ;
  rdfs:range xsd:double .

[]
  a owl:Restriction ;
  owl:onProperty dogma:Longitude ;
  owl:someValuesFrom [
    a rdfs:Datatype ;
    owl:onDatatype xsd:double ;
    owl:withRestrictions (
      [xsd:minInclusive "-180"^^xsd:double]
      [xsd:maxInclusive "180"^^xsd:double]
    )
  ] .
message Longitude {
  Angle angle = 1;
}
longitude DOUBLE PRECISION  -- in degrees from -180° to 180°
<xs:simpleType name="Longitude">
  <xs:restriction base="xs:double">
    <xs:minInclusive value="-180"/>
    <xs:maxInclusive value="180"/>
  </xs:restriction>
</xs:simpleType>

Serialization

86.9250  // Longitude of Mt. Everest
// TODO
<!-- TODO -->

FAQs

References