Sha256: 8f23a50afe29d3836892ee32ec81f9fadcf4f3cf02d38bdb5f65940bc0a2f025

Contents?: true

Size: 1.88 KB

Versions: 1

Compression:

Stored size: 1.88 KB

Contents

# Generated from lib/autocad/point3d.rb with RBS::Inline

module Autocad
  class Point3d
    def self.cartesian_to_polar: (untyped x, untyped y) -> untyped

    def self.from_polar_degrees: (untyped r, untyped a) -> untyped

    def self.from_ole: (untyped ole) -> untyped

    def self.polar_to_cartesian: (untyped r, untyped a) -> untyped

    # convert array of points to array of x,y coordinates
    # array can be [ Point3d, Point3d, ..]
    # array can be [  [x,y,z], [x,y,z], [x,y,z] ..]
    # array can be [x,y, x1, y1, x2,y2, x3,y3]
    # array can be [[x,y], [x2,y2], [x3,y3]]
    # all coordinates are converted to float
    # z coordinates are ignored
    # @rbs return Array[Float]
    def self.pts_to_array: (untyped pts) -> Array[Float]

    def self.array_to_ole: (untyped ar) -> untyped

    attr_reader x: untyped

    attr_reader y: untyped

    attr_reader z: untyped

    def initialize: (?untyped _x, ?untyped _y, ?untyped _z, ?x: untyped, ?y: untyped, ?z: untyped) -> untyped

    # @rbs other: Point3d | [Float,Float,Float]
    def +: (Point3d | [ Float, Float, Float ] other) -> untyped

    def distance_to: (untyped other) -> untyped

    # @rbs return [Float,Float, Float]
    def deconstruct: () -> [ Float, Float, Float ]

    # @rbs return { x: Float, y: Float, z: Float}
    def deconstruct_keys: () -> { x: Float, y: Float, z: Float }

    # @rbs return [Float,Float, Float]
    def to_ary: () -> [ Float, Float, Float ]

    # @rbs other: Point3d | [Float,Float,Float]
    def -: (Point3d | [ Float, Float, Float ] other) -> untyped

    def to_xy: () -> untyped

    def xy_bounds: (untyped other) -> untyped

    def to_s: () -> untyped

    # @rbs return [Float,Float, Float]
    def to_a: () -> [ Float, Float, Float ]

    # @rbs return Point3d -- return a Point3d at [0,0,0]
    def zero: () -> Point3d

    def to_cartesian: () -> untyped

    def to_ole: () -> untyped
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
autocad-0.4.6 sig/generated/autocad/point3d.rbs