CrossClj

0.3.0 docs

SourceDocs



RECENT
    VARS
    ->Polar2
    ->Polar3
    ->Vec2
    ->Vec3
    ->Vec4
    all?
    Arithmetic
    Cartesian
    cartesian?
    cross
    map*
    map->Polar2
    map->Polar3
    Polar
    polar2
    polar3
    polar?
    Tuple
    vec2
    vec3
    vec4

    « Index of all namespaces of this project

    (->Polar2 theta r)
    Positional factory function for class cantor.vector.Polar2.
    
    (->Polar3 theta phi r)
    Positional factory function for class cantor.vector.Polar3.
    
    (->Vec2 x y)
    Positional factory function for class cantor.vector.Vec2.
    
    (->Vec3 x y z)
    Positional factory function for class cantor.vector.Vec3.
    
    (->Vec4 x y z w)
    Positional factory function for class cantor.vector.Vec4.
    
    (all? f a)(all? f a b)
    Returns true if all components of the input tuple satisfy 'f'.
    
    protocol
    (add a)(add a b)
    (div a)(div a b)
    (mul a)(mul a b)
    (sub a)(sub a b)
    (cartesian? c)
    Returns true is 'c' is a cartesian vector.
    
    (cross a b)
    Returns the cross product of two 3-vectors.
    
    (map* f v)(map* f a b)(map* f a b & rest)
    Same as map, but returns a tuple of the same type as the input(s).
    
    (map->Polar2 m__7585__auto__)
    Factory function for class cantor.vector.Polar2, taking a map of keywords to field values.
    
    (map->Polar3 m__7585__auto__)
    Factory function for class cantor.vector.Polar3, taking a map of keywords to field values.
    
    (polar2 theta)(polar2 theta r)
    Creates a 2-D polar coordinate.
    (polar theta) => (polar theta 1)
    (polar3 theta phi)(polar3 theta phi r)
    Creates a 3-D polar coordinate.
    (polar3 theta phi) => (polar3 theta phi 1)
    (polar? p)
    Returns true if 'p' is a polar coordinate.
    
    protocol
    (all- t f)(all- a b f)
    (map- t f)(map- a b f)(map- a b rest f)
    (vec2 x y)
    Creates a 2-vector.
    
    (vec3 v z)(vec3 x y z)
    Creates a 3-vector.
    (vec3 (vec2 x y) z) => (vec3 x y z)
    (vec4 a b)(vec4 x y z w)
    Creates a 4-vector.
    (vec4 (vec2 x y) (vec2 z w)) => (vec4 x y z w)
    (vec4 (vec3 x y z) w) => (vec4 x y z w)